I wrote these two codes for SQL pset7 but I'm getting different answers. Can anybody tell me the cause of the difference?
SELECT COUNT(title) FROM movies WHERE id = (SELECT movie_id FROM ratings WHERE rating = 10.0)
SELECT COUNT(id = (SELECT movie_id FROM ratings WHERE rating = 10.0)) FROM movies