I need update a column in a table with the sum of all previous rows for each row.
for example:
Day | Amount | SubTotal
1 | 1200 | 1200
2 | 300 | 1500
3 | 2100 | 3600
I search here and look in BOL, and i can't find any syntax or sample about CURSOR for UPDATE.
for example:
Day | Amount | SubTotal
1 | 1200 | 1200
2 | 300 | 1500
3 | 2100 | 3600
I search here and look in BOL, and i can't find any syntax or sample about CURSOR for UPDATE.