GATE DA 2025 · Normal Forms (1NF, 2NF, 3NF, BCNF)

MSQ · 2 marks · Problem DBMS-NORM-0033

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?
  1. A
    A is the only candidate key of R
  2. B
    A, BC are the candidate keys of R
  3. C
    A, BC, E are the candidate keys of R
  4. D
    Relation R is not in Boyce-Codd Normal Form (BCNF)

Solve it on GATE DA practice →More Relational Model & SQL problems

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