SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT f.title, f.rating FROM rental r JOIN inventory i ON r.inventory_id = i.inventory_id JOIN film f ON i.film_id = f.film_id JOIN customer c ON r.customer_id = c.customer_id WHERE c.first_name = 'KATIE' AND c.last_name = 'ELLIOTT' ORDER BY CASE WHEN f.rating = 'R' THEN 0 ELSE 1 END, f.title; ; show status like 'Last_query_cost';

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear