Skip to main content
Admissions guidance, study banks, and career tools โ€” get started on Shalyam

Monthly Revenue

Return the total order amount for each calendar month as 'YYYY-MM' with the column names month and revenue, ordered by month.

Table schema

Orders(id INT PRIMARY KEY, order_date DATE, amount INT)

Sample data

id | order_date | amount
1 | 2026-01-10 | 100
2 | 2026-01-25 | 200
3 | 2026-02-03 | 150

Discussion

No discussions yet.

Rewards ยท v2.1

Join Shalyam Newsletter

Get exclusive insights with every issue: education, research and innovation news.

One email a week. Unsubscribe any time.