← SQL Analyst StarterMy saved work →
Final project · SQLite
Build a checked paid-order report
Your work
Active 0:00 · Paused 0sShow the reference answer
SELECT o.region, COUNT(*) AS order_count,SUM(o.amount) AS paid_revenue FROM orders o WHERE o.status='paid' GROUP BY o.region ORDER BY paid_revenue DESC,region ASC
The report must include East, West and North; preserve all paid orders.