Skip to main content
All Problems
medium0% acceptance

Monthly Revenue Summary

The CFO needs a month-by-month revenue report. For each month (formatted as YYYY-MM), compute the total revenue (sum of total_amount) and the number of orders. Only include months with revenue exceeding 500. Sort chronologically.

Schema

🔑idINT
🔗customer_idINT
order_dateTEXT
statusTEXT
total_amountREAL
postgresql

Run your query to see results

Press Ctrl + Enter to execute