This is my table structure
item |Transaction Type| Qty_IN | Qty Out |Transaction Sequence
------|----------------|--------|-----------------------
item1| Beg. Balance | 15 | 0 | 1
item1| Received Item | 5 | 0 | 2
item1| Transfer Item | 0 | 2 | 3
item1| Transfer Item | 0 | 3 | 4
My desired output
item |Transaction Type| Qty_IN | Qty Out | End Bal
------|----------------|--------|---------|-------
item1| Beg. Balance | 0 | 0 | 15
item1| Received Item | 5 | 0 | 20
item1| Transfer Item | 0 | 2 | 18
item1| Transfer Item | 0 | 3 | 15
Is there another way to get my desired output without using cursor?