SQL/MX 3.2 Reference Manual (H06.25+, J06.14+)

SQL/MX Functions and Expressions
HP NonStop SQL/MX Release 3.2 Reference Manual691117-001
9-164
Examples of RUNNINGSUM
Return the sum of non-null values of I1 up to and including the current row:
SELECT RUNNINGSUM (I1) AS SUM_I1
FROM mining.seqfcn
SEQUENCE BY TS;
SUM_I1
--------------------
6215
34389
34389
38986
50952
--- 5 row(s) selected.