Consider a database relation \(R\) with attributes \(ABCDEFG\), and having the following functional dependencies:\(A\to BCEF\)
\(E\to DG\)
\(BC \to A\)Which of the following statements is/are correct?
A
A is the only candidate key of R
B
A, BC are the candidate keys of R
C
A, BC, E are the candidate keys of R
D
Relation R is not in Boyce-Codd Normal Form (BCNF)
Show the worked solution\(R(ABCDEFG)\), FDs: \(A\to BCEF\), \(E\to DG\), \(BC\to A\)\(\{A\}^+\): \(A\to BCEF\) gives \(\{A,B,C,E,F\}\); then \(E\to DG\) gives all of \(\{A,\ldots,G\}\). \(A\) is a candidate key.\(\{BC\}^+\): \(BC\to A\) gives \(\{A,B,C\}\); then \(A\to BCEF\) gives \(\{A,B,C,E,F\}\); then \(E\to DG\) gives all attributes. \(BC\) is also a candidate key.\(\{E\}^+\): \(E\to DG\) only gives \(\{D,E,G\}\) — doesn't reach \(A,B,C,F\). Not a candidate key alone.So the candidate keys are exactly \(\{A\}\) and \(\{BC\}\) (not \(E\), and not just \(A\) alone since \(BC\) also qualifies).Checking BCNF: for \(E\to DG\), is \(E\) a superkey? \(\{E\}^+=\{D,E,G\}\ne\) all attributes, so no — this FD violates BCNF. R is NOT in BCNF.Answer: A, BC are the candidate keys; and R is not in BCNF.Click Here for Detail SolutionGateOverflow discussion:
https://gateoverflow.in/460975/gate-da-2025-question-47
GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com