Bird
0
0

Which SQL keyword is used to set the transaction isolation level to prevent dirty reads?

easy📝 Syntax Q3 of 15
SQL - Transactions and Data Integrity
Which SQL keyword is used to set the transaction isolation level to prevent dirty reads?
ASET TRANSACTION ISOLATION LEVEL READ COMMITTED
BSET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED
CSET TRANSACTION ISOLATION LEVEL SERIALIZABLE
DSET TRANSACTION ISOLATION LEVEL READ ONLY
Step-by-Step Solution
Solution:
  1. Step 1: Identify isolation level preventing dirty reads

    READ COMMITTED isolation level prevents dirty reads by allowing only committed data to be read.
  2. Step 2: Match SQL syntax

    SET TRANSACTION ISOLATION LEVEL READ COMMITTED uses correct syntax to set READ COMMITTED level, which prevents dirty reads.
  3. Final Answer:

    SET TRANSACTION ISOLATION LEVEL READ COMMITTED -> Option A
  4. Quick Check:

    Prevent dirty reads = READ COMMITTED [OK]
Quick Trick: READ COMMITTED blocks dirty reads in SQL transactions [OK]
Common Mistakes:
  • Choosing READ UNCOMMITTED which allows dirty reads
  • Confusing SERIALIZABLE with dirty read prevention
  • Using READ ONLY which is unrelated to dirty reads

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes