CS FundamentalsModerateGATE CS · DBMS

Two transactions each read X = 100. T1 sets X = X − 30 and commits; then T2 sets X = X + 50 and commits. The final value is 150. Which anomaly occurred and which isolation property was violated?

  1. A. Unrepeatable read; durability
  2. B. Dirty read; atomicity
  3. C. Phantom read; consistency
  4. D. Lost update; isolation

Correct answer: D. Lost update; isolation

T2 overwrote T1's committed change using a stale read, so T1's update is lost (the serial result would be 120). This is an isolation failure — the interleaving is not serializable.

More DBMS and SQL questions

Exams that ask this topic