I
imichitterman
Guest
I have to perform " a not so clear transaction" .
The situation is like this:
I am trying to mimic an ATM machine operations.
When the customer enters his PIN and gets in
he wants to do a transaction ( deposit or widthdraw)
I want to make sure that his Balance is updated, that is, a sum is added too or subtracted from the "balance on hand".
So i had a table like this
CustomerPIN, Balance, TransactionAmount, TransactionType.
1234, 500, 200, 1
the 1 means that he has deposit.
now this customer comes back to do another deposit, how do i achieve getting his balance to change from the "500" to the new figure.
The situation is like this:
I am trying to mimic an ATM machine operations.
When the customer enters his PIN and gets in
he wants to do a transaction ( deposit or widthdraw)
I want to make sure that his Balance is updated, that is, a sum is added too or subtracted from the "balance on hand".
So i had a table like this
CustomerPIN, Balance, TransactionAmount, TransactionType.
1234, 500, 200, 1
the 1 means that he has deposit.
now this customer comes back to do another deposit, how do i achieve getting his balance to change from the "500" to the new figure.