Hi guys, I have a table which holds contact details against corresponding account numbers:
Contacts_Accounts Table contact id | account ID ======================= 1 | 12 1 | 13 1 | 14 2 | 12 2 | 13 3 | 12
how can I make a sql query that returns all entries that have BOTH account numbers 12 and 13 for example ...I'm using MYSQL here