SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select distinct a.actor_id, first_name, last_name, count(c.category_id) from film_actor fa join actor a on a.actor_id = fa.actor_id join film_category fc on fc.film_id = fa.film_id join category c on c.category_id = fc.category_id group by actor_id order by count(c.category_id) desc

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear