SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select f.title as film, DATE_FORMAT(r.rental_date, '%Y-%m') as rental_month, count(*) as rental_count from inventory i INNER JOIN rental r on i.inventory_id = r.inventory_id INNER JOIN film f on i.film_id = f.film_id where f.title = "BUCKET BROTHERHOOD" GROUP BY DATE_FORMAT(r.rental_date, '%Y-%m') order by rental_month DESC limit 1

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear