CS FundamentalsHardGATE CS · Product placement
R(A, B, C, D, E) has functional dependencies AC → BD, A → CD, C → D, D → A. Which of the following is the complete set of candidate keys of R?
- A. {AE, CE}
- B. {AE, CE, BCE}
- C. {AD, AE, CE, DE}
- D. {AE, CE, DE}
Correct answer: D. {AE, CE, DE}
Attributes never on a right side (E) must be in every key; extending them and testing closures gives exactly the minimal superkeys {AE, CE, DE}. Each closure covers all of R and no proper subset does, so these are all the candidate keys.
More DBMS and SQL questions
- Σ = {C → AE, E → B, AE → C, D → C}. Consider the FD AE → C while computing a canonical cover. Which statement about extraneous attributes…
- Which statement about a FOREIGN KEY constraint in standard SQL is correct?
- Table Score(name, pts) rows: ('a', 90), ('b', 85), ('c', 90), ('d', 70), ('e', 85), ('f', 60). What does this query return? sql SELECT…
- 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) with functional dependencies BE → A, C → AD, D → C is decomposed into R1(C, E), R2(A, D, E), R3(A, B, E). Which statement…
- Table Staff(id, name, dept, pay, boss) rows: (1, 'Anu', 'Ops', 40, NULL), (2, 'Bala', 'Ops', 55, 1), (3, 'Chitra', 'Tech', 70, 1), (4…