I have a junction table for many-many relationship that looks something like this:
Image_Tags:
Image_ID |. Tag_ID
4 | 5
4. | 6
4 | 7
5 | 6
5 | 7
I want create a SQL query to select an Image_ID that satisfies multiple Tag_ID requirements. For example, I want to find all Image_IDs that have both Tag_ID 5 AND 6, returning image 4 but not image 5. How would I go about this?