SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select distinct name as category, count(f.film_id) as film_count from category c inner join film_category fc on fc.category_id = c.category_id left join film f on f.film_id = fc.film_id group by name, f.film_id order by category

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear