Chapter 4 · Aggregations
01. Total Number of Orders
Easy10 XPE-Commerce
Management wants a quick KPI check. Write a query that returns the total number of orders in the system.
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.