Okay, so i have three tables,
images(ID, name,..)
,
tags(ID, name, ..)
and
one with the connections image_tags(imageID, tagID)
.
Here's my problem, I'm trying to write a query that gets all the images that has 2+ specific tag IDs.
Sounds simple enough or so i thought. I know I can do it with getting all the images that has one tag and then check all of them if they have the other ones but the cost to performance is a bit too high that way.
Would appreciate any input on the matter..