By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
12 rows affected
Id | baseCurrencyId | totalOldDebt | totalRecoveredDebt | totalDebt |
---|---|---|---|---|
1 | 2 | 100 | 100 | 0 |
2 | 1 | 2000 | 950 | 1050 |
2 | 2 | 300 | 500 | -200 |
4 | 1 | 0 | 10 | -10 |