🙏 We need your help! SQLtest.online lives on donations. Donate any amount and ads turn off for your account. Donate now →
SQL code copied to buffer
Task

Find highly rated actors

MySQL
Find the top 5 actors with the highest average ratings for the films they starred in.
Write a query that returns a table of three columns: actor_id, actor_name - the actor's first and last name separated by a space and avg_film_rating - average rating of films with his participation, sorted in descending order of rating.
Expected result Columns: 3 · Rows: 5
actor_id actor_name avg_film_rating

Sample rows open after wrong checks: 0 of 2

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

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