SELECT camera.id
FROM camera JOIN camera_features ON camera.id=camera_features.camera_id
GROUP BY camera.id
HAVING sum(camera_features.feature_id IN (1,2,3))=3
3
(1,2,3)
. में सुविधाओं की संख्या है . और (camera_id,feature_id)
. मानते हुए camera_features
. में अद्वितीय है ।