Bird
0
0

Which of the following best describes a dirty read in database transactions?

easy📝 Conceptual Q11 of 15
SQL - Transactions and Data Integrity
Which of the following best describes a dirty read in database transactions?
AReading data that has been modified but not yet committed by another transaction.
BSeeing new rows appear in a query result after re-running the same query.
CReading only committed data and never uncommitted changes.
DLocking rows to prevent other transactions from reading them.
Step-by-Step Solution
Solution:
  1. Step 1: Understand dirty read definition

    A dirty read happens when a transaction reads data that another transaction has changed but not committed yet.
  2. Step 2: Compare options to definition

    Reading data that has been modified but not yet committed by another transaction. matches this exactly. Seeing new rows appear in a query result after re-running the same query. describes phantom reads, C describes a safe read, and D is about locking, not dirty reads.
  3. Final Answer:

    Reading data that has been modified but not yet committed by another transaction. -> Option A
  4. Quick Check:

    Dirty read = reading uncommitted data [OK]
Quick Trick: Dirty read = reading uncommitted changes [OK]
Common Mistakes:
  • Confusing dirty read with phantom read
  • Thinking dirty read only reads committed data
  • Mixing locking with read phenomena

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes