I am having trouble getting my head around the following problem.
Given the following table structure and data, how might I select records that match two tags. For example:
+-----------------+------------------+
| collection_id | tag |
+-----------------+------------------+
| 1 | advertising |
| 1 | tutorials |
| 2 | advertising |
| 2 | coding |
+-----------------+------------------+
If I search for advertising && tutorials, it should return collection_id
= 1, and not collection_id
= 2.
Any pointers most welcome.