CREATE CURSOR t1 (cDesc c(10), nValue i) INSERT INTO t1 VALUES("Record 1", 10) INSERT INTO t1 VALUES("Record 2", 15) INSERT INTO t1 VALUES("Record 3", 7) SELECT cDesc, nValue, CUMULATIVE(nValue) as nCumulative ; FROM t1 ; ORDER BY 1 ; INTO CURSOR t2 BROWSE LAST NOWAIT * Should produce a data set: * Record 1, 10, 10 * Record 2, 15, 25 * Record 3, 7, 32