CS FundamentalsHardGATE CS · DBMS
R(A, B, C, D, E) has functional dependencies A → DE, C → AD, AD → C, E → AC. Which of the following is the complete set of candidate keys of R?
- A. {AB, AC, BC, BE}
- B. {AB, BC, BCE}
- C. {AB, BC}
- D. {AB, BC, BE}
Correct answer: D. {AB, BC, BE}
Attributes never on a right side (B) must be in every key; extending them and testing closures gives exactly the minimal superkeys {AB, BC, BE}. Each closure covers all of R and no proper subset does, so these are all the candidate keys.
More DBMS and SQL questions
- Keys 4, 38, 33, 56, 40, 14, 54 are inserted in this order into an empty B+ tree where a node holds at most 2 keys; an overflowing leaf…
- Σ = {AE → D, BC → D, C → A, A → E, D → B} on R(A, B, C, D, E). Exactly one FD in Σ is redundant (it can be derived from the others). Which…
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…
- R(A, B, C, D, E) has functional dependencies B → ACD, BC → AD, C → A. What is the closure {B}⁺?
- 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…