Chapter 4 · Aggregations
47. Monthly Order Count
Medium20 XPE-Commerce
The operations team needs a monthly order trend report. Count the number of orders placed each month. Return the month (as YYYY-MM) and the order count, sorted chronologically.
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.