Můžete použít SUM pomocí ORDER BY klauzule uvnitř OVER klauzule:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable
Můžete použít SUM pomocí ORDER BY klauzule uvnitř OVER klauzule:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable