Which of the following best describes the condition for a relation to be in Boyce-Codd Normal Form (BCNF)?
Recall that BCNF is a stricter form of 3NF focusing on determinants.
BCNF requires that for every functional dependency X → Y, X must be a candidate key. This means every determinant is a candidate key.
Which statement correctly distinguishes BCNF from Third Normal Form (3NF)?
Think about the exceptions allowed in 3NF but not in BCNF.
3NF allows a functional dependency where the determinant is not a candidate key if the dependent attribute is part of some candidate key (prime attribute). BCNF does not allow this exception.
Given a relation R(A, B, C) with functional dependencies: A → B and B → C, which of the following is true about R?
Check which attributes are candidate keys and which dependencies violate BCNF.
A is a candidate key since A → B and B → C imply A → C by transitivity. However, B → C violates BCNF because B is not a candidate key.
You have a relation R(X, Y, Z) with dependencies X → Y and Y → X. Which of the following decompositions will result in relations in BCNF?
Consider which attributes form candidate keys and how dependencies affect BCNF.
X ↔ Y (X → Y and Y → X), but candidate keys of R are {X,Z} and {Y,Z} since no FDs involve Z. Thus X → Y violates BCNF (X not candidate key). Decomposing into R1(X, Y) (CKs: X, Y) and R2(Y, Z) (no non-trivial FDs) achieves BCNF.
Consider a relation R with attributes {A, B, C, D} and functional dependencies: A → B, B → C, and C → A. How many candidate keys does R have if it is in BCNF?
Analyze the cycle of dependencies and what attributes determine all others.
The dependencies form a cycle among A, B, and C (A→B→C→A so A↔B↔C). D is not functionally dependent on others (no {A,B,C}+ → D), so candidate keys are {A,D}, {B,D}, {C,D} — three candidate keys.