🙏 We need your help! SQLtest.online has no ads and lives only on donations. Even a small amount helps. Donate now →
SQL code copied to buffer
Task 8:

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.

Tutorial

By checking a query, you agree that it is stored without your account details and may be included in anonymized datasets, including for AI training. Learn more

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