Can you solve this simple SQL query?
Suppose it's a website that sells photo cameras. Here are my entities (tables): Camera: A simple camera Feature: A feature like: 6mp, max resolution 1024x768, The thing is between cameras and feature i've got a Many to Many relationship, so i have an extra table: camera -> cameras_features -> feature So, the query is simple: How to get all the cameras that have the feature 1,2 and 3? It's like constructing a bitmap index. Data you can use to test if the solution is ok C1 has features 1,2,3 C2 has features 1,2,4 C3 has features 1,2 Here are querys and the expected result: Show all the cameras