By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
Records: 4 Duplicates: 0 Warnings: 0
id | user_id | amount | run_sum |
---|---|---|---|
1 | 5 | 1000 | 1000 |
2 | 5 | -200 | 800 |
3 | 5 | -100 | 700 |
4 | 5 | 500 | 1200 |
Records: 4 Duplicates: 0 Warnings: 0
id | user_id | amount | run_sum |
---|---|---|---|
1 | 5 | 1000 | 1000 |
2 | 5 | -200 | 800 |
3 | 5 | -100 | 700 |
4 | 5 | 500 | 1200 |