Need Cumulative Query
Here is a table structure and sample data
Create TABLE Test1
(ID int,
Value1 int)
INSERT INTO Test1 VALUES(1,600);
INSERT INTO Test1 VALUES(2,250);
INSERT INTO Test1 VALUES(3,200);
INSERT INTO Test1 VALUES(4,150);
But I need output like
ID Value1 Cumulative_Value
1 600 600
2 250 850
3 200 1050
4 150 1200
I need a query for this...
Thanks in advance
|