Atomicity · Consistency · Isolation · Durability · COMMIT · ROLLBACK · Concurrency · Locking
| Problem | What Happens | Example |
|---|---|---|
| Lost Update | Two transactions both read a value, both update it. The second write overwrites the first — the first update is lost. | T1 reads stock=10, T2 reads stock=10. T1 writes 9, T2 writes 9. Actual stock should be 8 but is 9. |
| Dirty Read | Transaction T2 reads data that T1 has modified but not yet committed. If T1 then rolls back, T2 has read data that was never valid. | T1 reduces balance, T2 reads the new balance, T1 rolls back. T2 acted on data that was never committed. |
| Uncommitted Dependency | Same as dirty read — T2 depends on T1's uncommitted changes. If T1 rolls back, T2's decision was based on invalid data. | T2 grants a loan based on T1's uncommitted deposit. T1 rolls back — the deposit never happened. |
| Inconsistent Analysis | T2 reads several related records while T1 is in the middle of updating them. T2 sees a mix of old and new values — an inconsistent snapshot. | T2 sums all account balances while T1 is transferring money. T2 sees the debit but not yet the credit. |