SQL challenge 7 of 25
Total of each order
- Medium
- GROUP BY
- SUM
- expressions
- Solved
Your task
Work out the total of every order: the sum of quantity × unit price of its items. Return the order id and the total, with the biggest order first.
Return: order id, total · Database: Online shop · Row order is checked
Correct! Your result matches.
Not quite yet
SQL error
:
Your result
No rows.
Expected result
Loading…
No rows.
Preparing for an interview? Read the SQL interview questions, or write any query in the SQL playground.