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

8 lines
237 B
MySQL
Raw Normal View History

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