SQL query: SUM values up to the current record
- by djeidot
Basically, having this table:
12.10
2.35
21.45
35.26
I want to, in each record, calculate the sum of all previous records, like this:
12.10 | 12.10
2.35 | 14.45
21.45 | 35.90
35.26 | 71.16