SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT f.title,f.rating FROM film f JOIN inventory i USING (film_id) JOIN rental r USING (inventory_id) RIGHT JOIN customer c USING(customer_id) WHERE first_name = 'KATIE' AND last_name = 'ELLIOTT' ORDER BY CASE WHEN rating = 'R' THEN 0 ELSE 1 ,2

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear