Databases · Integrity Constraints and Normal Forms · 2 marks · Multiple choice
Consider a relational table $R$ that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?
$R$ has a nontrivial functional dependency $X\to A$, where $X$ is not a superkey and $A$ is a prime attribute.
$R$ has a nontrivial functional dependency $X\to A$, where $X$ is not a superkey and $A$ is a non-prime attribute and $X$ is not a proper subset of any key.
$R$ has a nontrivial functional dependency $X\to A$, where $X$ is not a superkey and $A$ is a non-prime attribute and $X$ is a proper subset of some key.
A cell in $R$ holds a set instead of an atomic value.
Correct answer: (A) $R$ has a nontrivial functional dependency $X\to A$, where $X$ is not a superkey and $A$ is a prime attribute.
Explanation
3NF requires that for every nontrivial FD $X\to A$, either $X$ is a superkey or $A$ is prime. Not being in BCNF means some FD has a non-superkey $X$, so $A$ must be prime.