Hı,
ID DEBIT CREDIT
1 1000 --------
2 ---- 500
3 ---- 200
4 ---- 100
5 ---- 500
I want to this result but dont cursor
ID_DEBIT ID_CREDIT AMOUNT
1 2 500
1 3 200
1 4 100
1 5 200
--- 5 300