CS FundamentalsEasyWipro · Cognizant pattern

Transaction T2 reads a value that T1 has written but not yet committed; T1 later rolls back. What is this anomaly called?

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

Correct answer: B. Dirty read

Reading uncommitted data is a dirty read; READ COMMITTED and above prevent it. A non-repeatable read reads committed data that changes between two reads.

More DBMS and SQL questions

Exams that ask this topic