Each Customer's Latest Order

easy
Unit 4 · Subqueries & Dates0/3 to milestone

For each customer who has ordered, return their most recent order: name, order_date and total. Use a correlated subquery in the WHERE clause. Sort by name.

Schema

customers(id, name, country, signup_date)
orders(id, customer_id, order_date, total)
#subqueries#correlated-subqueries1 visible + 1 hidden tests
query.sql · SQLite
Loading editor…
Run your code to see results. ⌘↵ to run · ⌘⇧↵ to submit
Each Customer's Latest Order · TechGradify