SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT a.actor_id, a.first_name, a.last_name, t.films_together FROM actor a JOIN( SELECT actor_id, COUNT(film_id) AS films_together FROM film_actor GROUP BY actor_id, film_id HAVING COUNT(film_id) > 5 ) t ON t.actor_id = a.actor_id GROUP BY a.last_name, t.films_together

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear