Bird
0
0

What phenomenon is this?

medium📝 query result Q5 of 15
SQL - Transactions and Data Integrity
Transaction 1 reads a set of rows matching a condition. Transaction 2 updates one of those rows and commits. When Transaction 1 reads the same row again, it sees the updated value. What phenomenon is this?
ANon-repeatable read
BPhantom read
CDirty read
DSerialization anomaly
Step-by-Step Solution
Solution:
  1. Step 1: Identify the read behavior

    Transaction 1 reads a row twice and sees different values due to Transaction 2's committed update.
  2. Step 2: Match phenomenon

    This is a non-repeatable read, where repeated reads return different data because of committed changes.
  3. Final Answer:

    Non-repeatable read -> Option A
  4. Quick Check:

    Repeated reads differ = Non-repeatable read [OK]
Quick Trick: Non-repeatable reads show changed data on repeated reads [OK]
Common Mistakes:
  • Confusing non-repeatable read with phantom read
  • Thinking dirty read applies after commit
  • Mixing serialization anomaly with read phenomena

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes