Keep SQLtest alive: Help cover this month's $100 server costs to keep all lessons and the SQL playground online. Support the project →
SQL code copied to buffer
Task 79:

Actors Excluding NC-17 Films

MySQL
The NC-17 rating is a rating for films classified as suitable for adults only.
Write a query to find all actors who have never appeared in films with this rating, using the NOT IN condition.
Output a result table with two columns first_name and last_name, sorted alphabetically by last name.
Expected result Columns: 2 · Rows: 1
first_name last_name

Write your query below and click "Check it!". Tables are described in the right pane.

The query result will appear here. Ctrl+Enter - Run query