I am doing a SQL exercise with the task: Output all movies involving more than 9 actors. Specify the number of actors as well, sort by Number_Actors in ascending order, and then by movie title. Projection list: Film_Id, film title, Number_Actors. Unfortunately, I am stuck and don't know what I made wrong.
SELECT film_id, title, COUNT(film_id) AS number_actors
FROM (
SELECT film.title
FROM film
INNER JOIN film ON film_actor.film_id = film.film_id
WHERE number_actors > 9
)
GROUP BY number_actors
ORDER BY number_actors, film


