Back Practice ↓

Related Practice & In-Depth Concepts

↑ Read lesson

Task:First, imagine a query that calculates the total value of each order: `SELECT order_id, SUM(quantity * unit_price) AS order_total FROM order_items GROUP BY order_id`. Now, write an outer query that treats that result as a table to find the MAXIMUM order_total among all orders.
SQL Query Editor
No results returned. Press Run Query (or Cmd/Ctrl + Enter) to execute.