Possible Duplicate:
Database design: Calculating the Account Balance
should the user's Account balance be stored in the database or calculated dynamically?
Where is the best place to store the user's account balance and why?
1) "Transaction" table, as calculated at the time when the transaction occurred or
2) "Account" Table, updated every time the user login or at the time the transaction occurred.