Skip to content
RED SAG Skills
medium10 pts · first answer countswindow-functionssqlrunning-totals

Computing a running total

Monthly sales in lakh are Jan 4, Feb 6, Mar 5, Apr 8. What is the running total on the April row?

SUM(sales) OVER (ORDER BY month ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW)
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions