CS FundamentalsHardDeloitte · IBM campus pattern
R(A, B, C, D, E) has functional dependencies AB → C, C → D, D → E, E → B. What are the candidate key(s) of R?
- A. AB
- B. AB, AC, AD, AE
- C. ABCDE
- D. ABC
Correct answer: B. AB, AC, AD, AE
Computing each candidate attribute set's closure under AB → C, C → D, D → E, E → B, the minimal sets whose closure is all of {A,B,C,D,E} are: AB, AC, AD, AE. 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, E) has functional dependencies AB → C, C → D, D → E, E → B, giving candidate key(s) AB, AC, AD, AE. How many superkeys does…
- R(A, B, C) is in 1NF with functional dependencies AB → C, C → B (candidate key(s): AB, AC). What is the highest normal form R satisfies?
- R(A, B, C) is in 1NF with functional dependencies A → B, B → C, C → A (candidate key(s): A, B, C). What is the highest normal form R…
- R(SID, CID, SNAME, GRADE) is in 1NF with functional dependencies SID,CID → GRADE, SID → SNAME (candidate key(s): SID,CID). What is the…
- R(A, B, C, D) is in 1NF with functional dependencies A → B, B → C, A → D (candidate key(s): A). What is the highest normal form R satisfies?
- R(A, B, C, D) is in 1NF with functional dependencies AB → C, C → D (candidate key(s): AB). What is the highest normal form R satisfies?