$ 0 0 You need to use window aggregate function, something like this should work... SEL NAME, MEASURE, DATE, SUM(MEASURE) OVER(PARTITION BY NAME ORDER BY DATE ASC ROWS UNBOUNDED PRECEDING) AS CUM_AMT FROM <<TABLE_NAME>> ORDER BY NAME, DATE ASC;
You need to use window aggregate function, something like this should work...