Sie können SUM verwenden mit ORDER BY -Klausel innerhalb des OVER Klausel:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable
Sie können SUM verwenden mit ORDER BY -Klausel innerhalb des OVER Klausel:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable