Normalization & Schema Design · SQL SQL

Which of the following describes a Boyce-Codd Normal Form (BCNF) violation?

Practice question from Normalization & Schema Design (SQL SQL), with the correct answer and a step-by-step solution.

medium · MCQ · Q-C540C7

Which of the following describes a Boyce-Codd Normal Form (BCNF) violation?

  1. A.A non-prime attribute depends on a proper subset of a candidate key.
  2. B.A non-prime attribute depends on another non-prime attribute.
  3. C.A functional dependency exists where the left-hand side is not a superkey, but the right-hand side is a prime attribute.
  4. D.A functional dependency exists where the left-hand side is not a superkey, regardless of whether the right-hand side is prime or non-prime.Correct answer

Solution

BCNF is stricter than 3NF. A relation is in BCNF if and only if for every non-trivial functional dependency X -> Y, X is a superkey. If X is not a superkey, it is a BCNF violation, even if Y is a prime attribute.

More from Normalization & Schema Design

All of Normalization & Schema Design

Practise more SQL

Sign up free for adaptive practice on this chapter, with instant feedback and hints on every question.

Start practising free

Free to start · No credit card needed