🚀 November has started! SQLtest.online stays free thanks to donations from people like you. Help us reach this month's goal early so the site keeps running without interruptions. Support now →
SQL code copied to buffer
Task 161:

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