Chapter 4 · Aggregations
12. Count Delivered Orders
Easy10 XPE-Commerce
The logistics team wants to know how many orders have been successfully delivered. Write a query that returns the total number of orders with a status of 'delivered'.
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.