hey guys can you help me with my query promblems, this is the table that i have created
----Accounts----
Date | amount | customerID
Date -> the current date and time of the date entry
Amount -> is the credit or debit / they differ when amount < 0 it is credit and when amount > 0 it's debit
Date is my primary key
sample data
Date | amount | customerID
12/13/07 | 100 | cus001
12/20/07 | 200 | cus001
12/23/07 | -50 | cus001
12/24/07 | 500 | cus005
I need to query like this: where customerID = cus001
Date | debit | credit | balance | customerID
12/13/07 | 100 | 0 | 100 | cus001
12/20/07 | 200 | 0 | 300 | cus001
12/23/07 | 0 | 50 | 250 | cus001
will it be possible?
thanks in advance...
