I have the following table strucature
TransactionDate Item RecQty IssueQty
1-jun-2011 A 10 0
2-jun-2011 A 15 0
3-jun-2011 A 20 0
4-jun-2011 A 0 20
4-jun-2011 A 0 20
And I want the result on specific Date i.e 2-jun-2011
Item Opening RecQty IssueQty BalanceQty
A 10 15 0 25
And on 4-Jan-2011
Item Opening RecQty IssueQty BalanceQty
A 45 0 40 5