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
UPDATE t SET cumulative_sum = ( SELECT SUM(x.count) FROM t x WHERE x.id <= t.id )