CS FundamentalsModerateGATE CS · Amazon/Microsoft placement
R(A, B, C, D, E) has functional dependencies B → ACD, BC → AD, C → A. What is the closure {B}⁺?
- A. {BCD}
- B. {ABCDE}
- C. {ABC}
- D. {ABCD}
Correct answer: D. {ABCD}
Keep applying any FD whose left side is already inside the set until nothing changes; one pass in listed order is not enough. The result is {ABCD}.
More DBMS and SQL questions
- Which statement about the multivalued dependency X ↠ Y on R is correct?
- R(A, B, C, D, E) has the set of functional dependencies Σ = {AD → BE, D → AE, CE → D, A → B}. Which of the following FDs is NOT in Σ⁺ (not…
- A file of 2400 blocks is sorted by external merge sort with M = 6 buffer blocks (sorted runs of M blocks are created in pass 0, then (M −…
- R(A1, A2, …, A8) has the FDs A1 → A2, A2 → A3, …, A7 → A8 and A8 → A1. How many candidate keys does R have, and what is its highest normal…
- Assertion (A): Every relation schema with exactly two attributes is in BCNF. Reason (R): For R(X, Y), any non-trivial FD has a single…
- R(A, B, C, D, E) has functional dependencies CE → BD, DE → A, BD → E. Which of the following is the complete set of candidate keys of R?