Skip to main content
All Problems
easy0% acceptance

Average Order Value by Status

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.

Schema

🔑idINT
🔗customer_idINT
order_dateTEXT
statusTEXT
total_amountREAL
postgresql

Run your query to see results

Press Ctrl + Enter to execute