CS FundamentalsVery hardCapgemini · Cognizant GenC
Consider the schedule R1(A), W2(A), W1(A), W3(A). Which statement is correct?
- A. It is conflict serializable.
- B. It is neither view serializable nor conflict serializable.
- C. It is conflict serializable but not view serializable.
- D. It is view serializable but not conflict serializable.
Correct answer: D. It is view serializable but not conflict serializable.
R1 and W2 give T1 -> T2, and W2 and W1 give T2 -> T1, so there is a cycle. But the order T1, T2, T3 gives T1 the initial value and leaves T3's write final, matching the schedule, so it is view serializable (blind writes by T2).
More DBMS and SQL questions
- W(d, x) holds (1, 10), (2, 20), (2, 30), (3, 40). What value does SUM(x) OVER (ORDER BY d) give on the row (2, 20)?
- Under the SQL standard's isolation levels, which anomaly can still occur at REPEATABLE READ but is prevented at SERIALIZABLE?
- 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: