CS FundamentalsVery hardGATE CS (PYQ pattern)
R(A, B, C, D, E, F, G) has the functional dependencies AB -> C, C -> D, D -> A, BE -> F, F -> E, CG -> B. How many candidate keys does R have?
- A. 4
- B. 2
- C. 8
- D. 6
Correct answer: D. 6
G appears on no right side, so it is in every key. The cycles C -> D -> A (with AB -> C) and E <-> F (via BE -> F, F -> E) let attributes substitute for each other: keys are CEG, CFG (C and G give D, A and B), and ABEG, ABFG, BDEG, BDFG (B with A or D regains C). That is 6 minimal keys; missing the D -> A substitution leaves 4.
More DBMS and SQL questions
- R(A, B, C, D, E) has the functional dependencies C → B, A → D, A → C, BE → A. How many superkeys does R have (counting every attribute set…
- R(A, B, C, D, E, F) has the functional dependencies EB → FA, EB → F, AB → C, D → AC, D → A, DF → A. After splitting right sides into…
- R(A, B, C, D, E, F) has the functional dependencies F → E, B → F, E → C, AB → F, D → E. R is decomposed into (B, D), (A, C, D, E), (A, B…
- R(A, B, C, D, E, F) has the functional dependencies DB → A, AC → D, E → D, DE → A, AB → E. What is the highest normal form of R among 1NF…
- R(A, B, C, D, E, F) has the functional dependencies A → C, D → E, AC → B, C → F, FD → A, A → D. The 3NF synthesis algorithm computes a…
- R(A, B, C, D, E) has the functional dependencies A → B, BC → D and D → E. How many non-trivial functional dependencies of the form X → Y…