Hi! Could we please enable some services and cookies to improve your experience and our website?

SQLize | PHPize | SQLtest

Online Sandbox for SQL and PHP: Write, Run, Test, and Share SQL Queries and PHP Code

A A A
Login    Share code      Blog   FAQ
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 AI support!

Copy Clear