Trans Id Date Description Credit Debit 1 12/05/2009 Amount Deposited 1000 1000 2 15/05/2009 Amount withdrawn -500 500 3 20/05/2009 Deposited 2000 2500 4 25/05/2009 Amount withdrawn -1000 1500 1500
Trans ID is the primary key
I need the output as follows
Trans Id Date Description Amount 1 12/05/2009 Amount Deposited 1000 2 15/05/2009 Amount withdrawn 500 3 20/05/2009 Deposited 2000 4 25/05/2009 Amount withdrawn 1000 balance 1500
Need Sql query to generate the output