programming-examples/sql/SQLMovieDatabase/7. Write a query in SQL to find the titles of all movies that have no ratings.sql

7 lines
205 B
MySQL
Raw Normal View History

2019-11-18 14:05:53 +01:00
/*7. Write a query in SQL to find the titles of all movies that have no ratings. */
SELECT mov_title
FROM movie
WHERE mov_id NOT IN (
SELECT mov_id
FROM rating
);