Chapter 4 · Aggregations
07. Average Order Value by Status
Easy10 XPE-Commerce
Management wants a breakdown of the average order value for each order status. Return the status and the average total_amount, rounded to 2 decimal places, sorted by average descending.
Tables
- PKidINT
- FKcustomer_id→ customers.idINT
- order_dateTEXT
- statusTEXT
- total_amountREAL
Need help?
Ask Sol
AI tutor — looks at your current query and nudges you, without spoiling the answer.
Solution
Try the hints first — solving it yourself is what makes it stick.