The query:
SELECT id_user
FROM Rating
Where id_movie=2
INTERSECT
SELECT id_user
FROM Rating
Where id_movie=3
but I get:
1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INTERSECT SELECT
id_userFROM Rating Whereid_movie=3 LIMIT 0, 30' at line 1
any have solution??
Following query will do ..
SELECT id_user
FROM Rating
Where id_movie=2 and id_user in
( SELECT id_user FROM Rating Where id_movie=3);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With