CS FundamentalsVery hardGATE CS · Amazon/Microsoft placement
R(A, B, C, D, E) with functional dependencies B → AD, AC → B, A → B is decomposed into R1(A, B), R2(B, D), R3(B, C, E). Which statement is correct?
- A. Dependency preserving but not lossless join
- B. Lossless join and dependency preserving
- C. Neither lossless join nor dependency preserving
- D. Lossless join but not dependency preserving
Correct answer: B. Lossless join and dependency preserving
The chase (tableau) test produces an all-distinguished row, so the join is lossless. Every FD of F follows from the FDs projected onto the parts, so dependencies are preserved.
More DBMS and SQL questions
- R(A, B, C, D, E, F) has functional dependencies A → CD, CF → A, E → B, D → A. Which of these attribute sets is NOT a superkey of R?
- Table Product(pid, cat, price) rows: (1, 'X', 10), (2, 'X', 20), (3, 'Y', 20), (4, NULL, 30), (5, 'Y', NULL), (6, 'Z', 5). What does this…
- Consider the schedule R3(A), R2(A), R3(B), W3(B), R2(B), W1(B), W1(A), R1(A). Which statement is correct?
- T1: R1(A), R1(B) and T2: W2(A), W2(B). Of all 6 interleavings that keep each transaction's own order, how many are conflict serializable?
- Σ = {CD → A, AC → B, B → E, D → B, C → D} on R(A, B, C, D, E). Exactly one FD in Σ is redundant (it can be derived from the others). Which…
- R(A, B) has 400 tuples and S(B, C) has 80 tuples, where B is the primary key of S, and R.B may contain values absent from S (no foreign…