Dear Sir,
I'm maintaining a Table in SQLserver, the Table contains Transaction of Cash IN(Debit) and Cash OUT(Credit) as follows:
Table Name : "BankLedger "
Now my requirement is how to update the Balance column respectively same as "Running Total" method???
My application in Visual Basic 2010 and Database SQLserver 2008.
Expecting your answer with sample codes....
Thanks in advance.
I'm maintaining a Table in SQLserver, the Table contains Transaction of Cash IN(Debit) and Cash OUT(Credit) as follows:
Table Name : "BankLedger "
Code:
DATE...DETAILS........DEBIT...CREDIT...BALANCE 1/1/11.Opening Balance.................5000 1/1/11.Rent payment...........2500..... 2/1/11.Mobile Bill.............500..... 3/1/11.Monthly Share...5000............ 6/1/11.Emp Salary.............3000.....
Code:
DATE....DETAILS........DEBIT...CREDIT..BALANCE 1/1/11..Opening Balance................5000 1/1/11..Rent payment...........2500....2500 2/1/11..Mobile Bill.............500....2000 3/1/11..Monthly Share...5000...........7000 6/1/11..Emp Salary.............3000....4000
Expecting your answer with sample codes....
Thanks in advance.
Comment