By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
8 rows affected
| year | month | change | opening_balance |
|---|---|---|---|
| 2021 | 8 | -15.00 | -15.00 |
| 2021 | 9 | -525.00 | -540.00 |
| 2021 | 10 | -588.00 | -1128.00 |
| 2021 | 11 | -1141.98 | -2269.98 |
| 2021 | 12 | -2174.00 | -4443.98 |
| 2022 | 1 | -21.00 | -4464.98 |
| 2022 | 2 | -34.00 | -4498.98 |
| 2022 | 3 | -156.00 | -4654.98 |