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

Year-over-Year Revenue Growth

Return each year, its total revenue and the percentage growth compared with the previous year rounded to two decimals (NULL for the first year). Order by year.

Table schema

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

Sample data

id | order_date | amount
1 | 2024-05-01 | 100
2 | 2025-03-01 | 100
3 | 2025-08-01 | 50
4 | 2026-01-01 | 120

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.