SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select dense_rank() over (order by r desc) as film_rank, film_title from ( select film.title as film_title, count(rental_id) as r from rental join inventory on inventory.inventory_id = rental.inventory_id join film on film.film_id = inventory.film_id where year(rental_date) = '2005' group by inventory.film_id ) A group by film_rank order by film_rank

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear