By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
LedgId | Bill | Paid | Balance |
---|---|---|---|
1 | 75 | 0 | 75 |
2 | 0 | 50 | 25 |
3 | 780 | 0 | 805 |
4 | 500 | 0 | 1305 |
5 | 0 | 1000 | 305 |
6 | 780 | 0 | 1085 |
7 | 77 | 0 | 1162 |
LedgId | Bill | Paid | Balance |
---|---|---|---|
1 | 75 | 0 | 75 |
2 | 0 | 50 | 25 |
3 | 780 | 0 | 805 |
4 | 500 | 0 | 1305 |
5 | 0 | 1000 | 305 |
6 | 780 | 0 | 1085 |
7 | 77 | 0 | 1162 |