← All SQL interview questions

Running revenue total by month

MediumWindow FunctionsRazorpayPayPal

Finance publishes a cumulative revenue line for each product line across 2026.

From monthly_revenue, return product_line, revenue_month, revenue and running_total — the cumulative revenue for that product line from the earliest month up to and including the current month.

Sample data

Practising alone only goes so far — our live cohorts pair SQL depth with dashboards, agentic analytics projects and mock interviews.

Explore the program