Skip to content
Official PYQ · 1997

GATE CS 1997 Q6.9 — Normal Forms

Explain with AI

For a database relation R(a,b,c,d)R(a, b, c, d), where the domains a,b,c,da, b, c, d include only atomic values, only the following functional dependencies and those that can be inferred from them hold

  • a→ca \rightarrow c
  • b→db \rightarrow d

This relation is

Choose one option
View worked solution

Answer: A

To determine the normal form of the relation R(a,b,c,d)R(a, b, c, d), let us analyze the given conditions step-by-step:

  1. First Normal Form (1NF):

    A relation is in 1NF if the domain of each attribute contains only atomic (indivisible) values. Since the problem explicitly states that the domains of a,b,c,da, b, c, d include only atomic values, the relation RR is in 1NF.

  2. Candidate Key:

    Let us find the attribute closure to determine the candidate key(s):

    • {a,b}+={a,b,c,d}\{a, b\}^+ = \{a, b, c, d\} (using a→ca \rightarrow c and b→db \rightarrow d)

    Since no proper subset of {a,b}\{a, b\} can derive all attributes, the only candidate key for RR is {a,b}\{a, b\}.

    This gives us:

    • Prime attributes: a,ba, b (attributes that are part of a candidate key)
    • Non-prime attributes: c,dc, d (attributes that are not part of any candidate key)
  3. Second Normal Form (2NF):

    A relation is in 2NF if it is in 1NF and no non-prime attribute is partially dependent on any candidate key. In other words, a functional dependency X→YX \rightarrow Y violates 2NF if XX is a proper subset of a candidate key and YY is a non-prime attribute.

    Let us check the given functional dependencies:

    • a→ca \rightarrow c: Here, aa is a proper subset of the candidate key {a,b}\{a, b\}, and cc is a non-prime attribute. This is a partial dependency.
    • b→db \rightarrow d: Similarly, bb is a proper subset of the candidate key {a,b}\{a, b\}, and dd is a non-prime attribute. This is also a partial dependency.

    Since partial dependencies exist, the relation is not in 2NF.

Thus, the relation is in first normal form but not in second normal form.

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

Published
Report a correction
Keep exploringMore Normal Forms questions