CS FundamentalsEasyWipro · Cognizant technical pattern

Transaction T1 reads a row, transaction T2 then updates that row and commits, and T1 reads the same row again and sees a different value. Which anomaly is this?

  1. A. Dirty read
  2. B. Phantom read
  3. C. Lost update
  4. D. Non-repeatable read

Correct answer: D. Non-repeatable read

Reading the same row twice and getting different committed values is a non-repeatable read. A dirty read sees uncommitted data; a phantom is a new or vanished row in a range query; a lost update overwrites another transaction’s write.

More DBMS and SQL questions

Exams that ask this topic