CS FundamentalsModerateHCL · Tech Mahindra pattern
Which isolation-related statement is correct for the SQL standard levels?
- A. READ COMMITTED prevents non-repeatable reads
- B. READ UNCOMMITTED allows dirty reads
- C. SERIALIZABLE allows phantom reads
- D. REPEATABLE READ allows dirty reads
Correct answer: B. READ UNCOMMITTED allows dirty reads
Each level forbids more: READ UNCOMMITTED allows all three anomalies; READ COMMITTED forbids dirty reads; REPEATABLE READ also forbids non-repeatable reads; SERIALIZABLE forbids phantoms too.
More DBMS and SQL questions
- Which statement about dense and sparse indexes is correct?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Which statement about view serializability is correct?
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…
- Table Emp(id, name, dept, salary, mgr) rows: (1, 'Asha', 'HR', 50000, NULL), (2, 'Ravi', 'IT', 70000, 1), (3, 'Meena', 'IT', 70000, 2)…