CS FundamentalsVery hardGATE CS
R(A, B, C, D, E, F) has functional dependencies AB → C, C → D, D → A, BE → F and F → E. How many candidate keys does R have?
- A. 4
- B. 8
- C. 2
- D. 6
Correct answer: D. 6
B is on no right side, so it is in every key. A, C, D form a cycle (pick any one of them) and E, F form another (pick one), giving 3 × 2 = 6 keys such as ABE, BCF, BDE.
More DBMS and SQL questions
- R(A, B, C, D, E) has functional dependencies A → B, B → C, C → A and D → E. What is the highest normal form R satisfies?
- R(A, B, C, D) has functional dependencies AB → C, C → D and D → B. Which statement is correct?
- R(A, B, C, D, E) has functional dependencies AB → CD, D → A and C → E. What is the highest normal form R satisfies?
- R(A, B, C, D, E, F, G) has functional dependencies A → B, BC → D, D → E, E → C and F → G. How many candidate keys does R have?
- R(A, B, C, D, E) has functional dependencies A → BC, CD → E, B → D and E → A. What are all the candidate keys of R?
- Which of these is a minimal (canonical) cover of F = {AB → C, A → D, D → C, BD → E, AB → E}?