CS FundamentalsHardGATE
R(A, B, C, D) has functional dependencies A → B, C → D. What are the candidate key(s) of R?
- A. ABC
- B. AC
- C. ABCD
- D. ACB
Correct answer: B. AC
Computing each candidate attribute set's closure under A → B, C → D, the minimal sets whose closure is all of {A,B,C,D} are: AC. Any proper subset of these fails to close to every attribute, and any superset is a non-minimal superkey.
More DBMS and SQL questions
- R(A, B, C, D) has functional dependencies A → B, C → D, giving candidate key(s) AC. How many superkeys does R have in total?
- R(A, B, C, D, E) has functional dependencies A → BC, CD → E, E → A. What are the candidate key(s) of R?
- R(A, B, C, D, E) has functional dependencies A → BC, CD → E, E → A, giving candidate key(s) AD, CD, DE. How many superkeys does R have in…
- R(A, B, C, D) has functional dependencies AB → C, C → D, D → A. What are the candidate key(s) of R?
- R(A, B, C, D) has functional dependencies AB → C, C → D, D → A, giving candidate key(s) AB, BC, BD. How many superkeys does R have in total?
- R(A, B, C, D, E) has functional dependencies A → B, B → C, C → D, D → E. What are the candidate key(s) of R?