By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
somedate | somevalue | run_tot | m_run_tot |
---|---|---|---|
01.01.2009 | 10000 | 10000 | 10000 |
08.01.2009 | -100 | 9900 | 10000 |
02.02.2009 | -200 | 9700 | 9900 |
14.02.2009 | -200 | 9500 | 9900 |
20.02.2009 | -400 | 9100 | 9900 |
02.03.2009 | -300 | 8800 | 9100 |