SUMを使用できます ORDER BYを使用 OVER内の句 条項:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable
SUMを使用できます ORDER BYを使用 OVER内の句 条項:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable