Puoi usare SUM
con ORDER BY
clausola all'interno di OVER
clausola:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable
Puoi usare SUM
con ORDER BY
clausola all'interno di OVER
clausola:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable