74

Order Status Summary

MediumCOUNTSUMGROUP BY

Problem Description

Write a SQL query to count orders and total amount for each status.

Expected Columns

  • status
  • order_count
  • total_amount

Example Output

| status | order_count | total_amount | |--------|-------------|--------------| | Delivered | 9 | 110200.0 | | Shipped | 3 | 44200.0 | | Processing | 3 | 156800.0 |

Hints

Unlocks after 2 more attempts
Submit your solution to unlock hints
//#74 Order Status Summary
Medium

Loading schema...

Loading editor...

No results yet

Run a query to see results