SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT f.title, DATE_FORMAT (r.rental_date, "%Y-%m" ) as rental_month, SUM(i.film_id) AS rental_count FROM film f JOIN inventory i ON f.film_id = i.film_id JOIN rental r ON i.inventory_id = r.inventory_id GROUP BY rental_month HAVING f.title = "BUCKET BROTHERHOOD" ORDER BY rental_month ASC

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear