Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
Copy Format Clear
select json_object(name, JSON_LENGTH(json_arrayagg(film.film_id))) as films_by_category from film_category join film on film_category.film_id = film.film_id join category on category.category_id = film_category.category_id group by category.category_id ;

Stuck with a problem? Got Error? Ask AI support!

Copy Clear