SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
select title , rating from rental r inner join customer c on c. customer_id = r. customer_id inner join inventory i on i. inventory_id = r. inventory_id inner join film f on f.film_id = i. film_id where c.first_name = 'KATIE ' and c.last_name = 'ELLIOTT' order by CASE WHEN rating = 'R' THEN 0 ELSE 1 END, rating asc

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear