DBMS · Question 8 · Medium

DBMS question 8

Transaction T1 reads a row, then transaction T2 updates that row and commits, and then T1 reads the same row again and gets a different value. This anomaly is called a:

  1. Dirty read
  2. Phantom read
  3. Lost update
  4. Non-repeatable read
Answer and explanation

Answer: D. Non-repeatable read

Explanation: Reading the same row twice and getting different committed values is a non-repeatable read. A dirty read involves uncommitted data; a phantom read involves new rows matching a condition.

Previous: Relation R(A, B, C, D, E) has the functional dependencies A → B, B → C and CD… · Next: What does the basic Two-Phase Locking (2PL) protocol guarantee?

Practise dbms

Try a fresh set of dbms questions with an explanation after every answer, free and without signing up: DBMS practice. Or sit a full placement mock test.

More dbms questions

More technical & programming practice

SQL · Operating Systems · Computer Networks · Software Engineering · Cloud & DevOps · GenAI Basics · Pseudo-code · C Programming

LogicWiz Exams home · All practice topics · Placement mock tests · Daily 10 challenge