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, fa.film_id FROM actor a RIGHT JOIN film_actor fa ON a.actor_id = fa.actor_id WHERE a.actor_id IN ( SELECT fa.actor_id FROM film_actor fa GROUP BY fa.actor_id HAVING COUNT(film_id)>=5) GROUP BY a.actor_id, a.first_name, a.last_name, fa.film_id ORDER BY fa.film_id DESC, a.last_name

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear