Bird
0
0

You wrote this SQL command to set the isolation level but get an error:

medium📝 Debug Q14 of 15
SQL - Transactions and Data Integrity
You wrote this SQL command to set the isolation level but get an error:
SET TRANSACTION LEVEL ISOLATION READ COMMITTED;
What is the error in this statement?
AThe statement is correct; error is elsewhere.
B'TRANSACTION' keyword is missing.
C'READ COMMITTED' is not a valid isolation level.
DThe order of 'LEVEL' and 'ISOLATION' is incorrect.
Step-by-Step Solution
Solution:
  1. Step 1: Check correct syntax and identify the error

    Correct syntax is SET TRANSACTION ISOLATION LEVEL [level]; The given statement swaps 'LEVEL' and 'ISOLATION', causing a syntax error.
  2. Final Answer:

    The order of 'LEVEL' and 'ISOLATION' is incorrect. -> Option D
  3. Quick Check:

    Syntax order matters = The order of 'LEVEL' and 'ISOLATION' is incorrect. [OK]
Quick Trick: Remember correct keyword order: ISOLATION LEVEL [OK]
Common Mistakes:
  • Swapping 'LEVEL' and 'ISOLATION' keywords
  • Assuming 'READ COMMITTED' is invalid
  • Missing semicolon causing error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More SQL Quizzes