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) JOIN customer c USING (customer_id) WHERE first_name LIKE 'KATIE' AND last_name LIKE 'ELLIOTT' ORDER BY CASE WHEN rating = 'R' THEN 0 ELSE 1 END, 1 -- film_id -- customer_id -- inventory_id ; show status like 'Last_query_cost';

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear