CS FundamentalsModerateGATE CS · PSU (ISRO/BARC)
Which isolation anomaly is still possible at the SQL REPEATABLE READ level (as defined by the SQL standard)?
- A. Dirty reads
- B. Phantom reads
- C. Dirty writes (overwriting uncommitted data)
- D. Non-repeatable reads
Correct answer: B. Phantom reads
REPEATABLE READ locks/guards the rows already read, so re-reading them returns the same values; but new rows matching a predicate can still appear (phantoms). Only SERIALIZABLE rules them out.
More DBMS and SQL questions
- A B-tree (not B+ tree) stores a record pointer with every key in every node. With 2048-byte blocks, 16-byte keys, 8-byte tree pointers and…
- Table P(x) rows: (1), (2), (2), (3), (NULL). Table Q(x) rows: (2), (3), (3), (NULL), (4). What does this query return? sql SELECT (SELECT…
- R(A, B) = {(1, 4), (2, 4), (3, 3), (4, 1), (4, 3)} and S(B, C) = {(1, 6), (2, 5), (2, 6), (3, 5), (4, 5)}. How many tuples are in πA(R ⋈…
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B, C, D, E) has functional dependencies B → AC, C → B, AC → B, A → B. How many prime attributes does R have?
- Table Stu(sid, sname) rows: (1, 'Om'), (2, 'Pia'), (3, 'Raj'), (4, 'Sia'). Table Takes(sid, cid, marks) rows: (1, 'C1', 80), (1, 'C2'…