This seems very basic but I can\'t figure it out.
I\'ve got a table \"item_tags\", and I want to select all of the items that match tags 1 and 2 (as in, each item ha
something like this?
SELECT i.* from items i inner join items_tags it on i.id = it.item_id inner join tags t on t.id = it.tag_id WHERE t.name in ('tag1', 'tag2');
EDIT:
suppouse you have items_tags: (item_id, tag_id) as table