Question
Consider a relational table that is in 3NF, but not in BCNF. Which one of the following statements is TRUE?
Official answer and solution
- Official answer
- A
- From
- Official GATE 2020 answer key
Solution
Compare the definitions of Third Normal Form (3NF) and Boyce-Codd Normal Form (BCNF).
Definitions:
- For a relation to be in BCNF, for every non-trivial functional dependency , must be a superkey of .
- For a relation to be in 3NF, for every non-trivial functional dependency , either:
- is a superkey of , OR
- is a prime attribute (an attribute that is part of some candidate key of ).
Condition for being in 3NF but not in BCNF:
- Since is not in BCNF, there exists at least one non-trivial functional dependency where is NOT a superkey.
- However, because is in 3NF, this functional dependency must satisfy condition (2) of 3NF. Thus, MUST be a prime attribute.
- Therefore, must have a non-trivial functional dependency where is not a superkey and is a prime attribute.
Final answer
A
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2020 Computer Science and Information Technology (CS)
- Question
- 46 of 65, printed as CS Q.36
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.