Anda dapat menggunakan HAVING COUNT
. Nomornya juga harus dinamis.
SELECT person_id
FROM interest
WHERE interest_category IN ( 'music', 'movie', 'sport');
GROUP BY person_id
HAVING COUNT(*) = 3;
Anda dapat menggunakan HAVING COUNT
. Nomornya juga harus dinamis.
SELECT person_id
FROM interest
WHERE interest_category IN ( 'music', 'movie', 'sport');
GROUP BY person_id
HAVING COUNT(*) = 3;