10 lines237 B

-- Revenue per month
SELECT strftime('%Y-%m', ordered_at) AS month,
COUNT(*) AS orders,
SUM(total) AS revenue
FROM orders
GROUP BY month
HAVING revenue > 5000
ORDER BY month;
-- Questions? Ask in the course forum.