I have a table that looks like this:
id count 1 100 2 50 3 10
I want to add a new column called cumulative_sum, so the table wou
select Id, Count, @total := @total + Count as cumulative_sum from YourTable, (Select @total := 0) as total ;