CS FundamentalsVery hardGATE CS · TCS Digital
Under the SQL standard's isolation levels, which anomaly can still occur at REPEATABLE READ but is prevented at SERIALIZABLE?
- A. Dirty read
- B. Lost update on a row locked until commit
- C. Phantom read
- D. Non-repeatable read of a single row
Correct answer: C. Phantom read
REPEATABLE READ prevents dirty reads and non-repeatable reads of rows already read, but new rows matching a predicate (phantoms) may still appear; only SERIALIZABLE forbids them.
More DBMS and SQL questions
- Which pair of properties must every primary key satisfy?
- Which ACID property guarantees that a transaction's changes are applied completely or not at all?
- Which of these SQL commands is a DDL (Data Definition Language) command?
- In an ER model, a weak entity set is identified by:
- Which SQL clause filters groups AFTER aggregation?
- Which statement about the SQL command TRUNCATE TABLE is correct?