Correct Database?
Because transactions take place simultaneously, there is a possibility that two computers can be making changes to the same data at the same instant, possibly corrupting it …
Consider two transactions
- T1: Deposit $100 into Account #12345
- T2: Withdraw $100 from Account #12345
When transactions are over, the balance should be unchanged
But what if the transactions take place “at once”?