SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
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 ChatGPT!

Copy Clear