CS FundamentalsHardGATE CS
R(A, B, C) with FDs A → B and B → C has primary key A. A designer moves to R1(A, B) and R2(B, C). Which statement is correct?
- A. The decomposition is lossy because A does not appear in R2
- B. It is lossless and dependency preserving, and both parts are in BCNF
- C. It is lossless but loses A → C, so it is not dependency preserving
- D. Both parts are in 3NF but not BCNF
Correct answer: B. It is lossless and dependency preserving, and both parts are in BCNF
The common attribute B determines C, so the join is lossless. A → B lives in R1, B → C lives in R2, and A → C follows from them, so dependencies are preserved; each two-attribute part has a key on its left side, so both are in BCNF.
More DBMS and SQL questions
- In a wait-for graph the edges are T1 → T2, T2 → T3, T3 → T1, T3 → T4 and T5 → T2. What is the minimum number of transactions that must be…
- Under basic two-phase locking, which order of serial execution is a schedule conflict equivalent to?
- A query plan computes σ{dept = 'D1' ∧ sal > 50}(Emp ⋈ Dept). Which rewrite is a heuristic optimizer most likely to apply first, and why?
- A B+ tree has order p = 4 (at most 4 children per internal node, at most 3 keys per leaf) and every node except the root is at least half…
- A relation R has candidate keys AB and BC, and FDs AB → C, C → A. Which statement explains why R is in 3NF but not BCNF?
- Which relational-algebra equivalence is NOT valid in general?