Bird
0
0

In the REPEATABLE READ isolation level, which of the following anomalies is prevented when a transaction reads the same data multiple times?

medium📝 query result Q5 of 15
SQL - Transactions and Data Integrity
In the REPEATABLE READ isolation level, which of the following anomalies is prevented when a transaction reads the same data multiple times?
APhantom reads
BDirty reads
CNon-repeatable reads
DLost updates
Step-by-Step Solution
Solution:
  1. Step 1: Understand REPEATABLE READ guarantees

    REPEATABLE READ ensures that if a transaction reads a row twice, it will see the same data both times, preventing non-repeatable reads.
  2. Step 2: Identify anomalies prevented

    Dirty reads are prevented by READ COMMITTED and above; phantom reads are prevented only by SERIALIZABLE; lost updates are handled by locking mechanisms.
  3. Final Answer:

    Non-repeatable reads -> Option C
  4. Quick Check:

    REPEATABLE READ prevents data changes between reads [OK]
Quick Trick: REPEATABLE READ stops data changes between reads [OK]
Common Mistakes:
  • Confusing phantom reads with non-repeatable reads
  • Assuming dirty reads are prevented only at SERIALIZABLE
  • Mixing lost updates with read anomalies

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes