CS FundamentalsHardGATE CS · Product placement
Consider the schedule W1(B), W2(A), R2(A), W1(A), R3(A), W3(B). Which statement is correct?
- A. Conflict serializable, equivalent only to T2 → T1 → T3
- B. It is not conflict serializable
- C. Conflict serializable, equivalent only to T2 → T3 → T1
- D. Conflict serializable, equivalent only to T1 → T3 → T2
Correct answer: A. Conflict serializable, equivalent only to T2 → T1 → T3
Conflict edges: T1→T3, T2→T1, T2→T3. The graph is acyclic and its only topological order is T2 → T1 → T3.
More DBMS and SQL questions
- Classify the schedule W2(A), W1(B), W1(A), R1(B), C1, W2(B), R2(B), C2 (Ci = commit of Ti) by the strongest property it satisfies.
- A query runs WHERE a = 7 AND b > 100 ORDER BY b. Which single B+ tree index serves it best?
- R(A, B, C, D) has functional dependencies AD → C, A → D, AC → D, D → A. What is the highest normal form R satisfies?
- R occupies 600 blocks and S occupies 400 blocks. Ignoring the cost of writing the result, what is the cost of a hash join (partitioning…
- In a B+ tree every internal node can have at most 101 children and every leaf can hold at most 80 keys. With exactly 3 levels (root at…
- R(A, B) = {(3, 2), (5, 2), (8, 1), (11, 1), (14, 2)}. What does πA(R) − π{R1.A}(σ{R1.A > R2.A}(ρ{R1}(R) × ρ{R2}(R))) return?