Skip to content
Official PYQ · 2022

GATE CS 2022 Q4 — Normal Forms

Explain with AI

In a relational data model, which one of the following statements is TRUE?\text{TRUE}?

Choose one option
View worked solution

Answer: A

Let us analyze each option to determine the correct statement:

  • Option A: A relation with only two attributes is always in BCNF. (TRUE)

    Let R(A,B)R(A, B) be a relation with only two attributes. The only possible non-trivial functional dependencies (FDs) are A→BA \rightarrow B and/or B→AB \rightarrow A.

    • If A→BA \rightarrow B holds, then AA is a candidate key (and hence a superkey).
    • If B→AB \rightarrow A holds, then BB is a candidate key (and hence a superkey).
    • If both hold, both AA and BB are candidate keys.
    • If no non-trivial FDs hold, BCNF is trivially satisfied.

    In every case, for any active non-trivial FD X→YX \rightarrow Y, the determinant XX is a superkey. Thus, any binary relation is always in BCNF.

  • Option B: If all attributes of a relation are prime attributes, then the relation is in BCNF. (FALSE)

    Consider a relation R(A,B,C)R(A, B, C) with functional dependencies: AB→CandC→BAB \rightarrow C \quad \text{and} \quad C \rightarrow B The candidate keys are ABAB and ACAC. All attributes {A,B,C}\{A, B, C\} are prime attributes. However, for the dependency C→BC \rightarrow B, the determinant CC is not a superkey. Hence, the relation is in 3NF but not in BCNF.

  • Option C: Every relation has at least one non-prime attribute. (FALSE)

    In the counterexample used for Option B (R(A,B,C)R(A, B, C) with keys ABAB and ACAC), all attributes are prime. There are no non-prime attributes.

  • Option D: BCNF decompositions preserve functional dependencies. (FALSE)

    While BCNF decomposition is always lossless, it is not always dependency-preserving. For example, decomposing R(A,B,C)R(A, B, C) with AB→CAB \rightarrow C and C→BC \rightarrow B into BCNF relations R1(C,B)R_1(C, B) and R2(A,C)R_2(A, C) loses the dependency AB→CAB \rightarrow C.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Normal Forms questions