U kunt SUM
. gebruiken met ORDER BY
clausule binnen de OVER
clausule:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable
U kunt SUM
. gebruiken met ORDER BY
clausule binnen de OVER
clausule:
SELECT Account, Month, Salary,
SUM(Salary) OVER (PARTITION BY Account ORDER BY Month) AS RunningTotal
FROM mytable