Du kan bruge SUM
med ORDER BY
klausul inde i OVER
klausul:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable
Du kan bruge SUM
med ORDER BY
klausul inde i OVER
klausul:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable