Find the largest order
Return customer and total for the order with the highest total.
Your queryQuery investigation
Explore the fictional database
products id | name | stock 1 | Notebook | 5 2 | Lamp | 2 3 | Bag | 0 orders id | customer | total 1 | Asha | 20 2 | Ben | 35 3 | Asha | 80
Read-only SELECT queries. Columns and row order should match the task.
Investigation result5 min · no timer
Show solution and explanation
Return customer and total for the order with the highest total. Use WHERE to filter, ORDER BY to sort, and GROUP BY with SUM to aggregate.
SELECT customer, total FROM orders ORDER BY total DESC LIMIT 1;