I have table 'devices' with following structure.
id | user_id | device
1 | 12 | tablet
2 | 12 | pc
2 | 12 | mobile
This table is related many to one with table "users". One user can have multiple devices, and I would like to select only users that has two devices "tablet" and "pc" for example.
How can I do it.
Thank you
handlethis case.