Skip to content
Official PYQ · 2019

GATE CS 2019 Q32 — Normal Forms

Explain with AI

Let the set of functional dependencies F={QR→S, R→P, S→Q}F=\{QR \rightarrow S, \: R \rightarrow P, \: S \rightarrow Q \} hold on a relation schema X=(PQRS)X=(PQRS). XX is not in BCNF. Suppose XX is decomposed into two schemas YY and ZZ, where Y=(PR)Y=(PR) and Z=(QRS)Z=(QRS).

Consider the two statements given below.

  1. Both YY and ZZ are in BCNF
  2. Decomposition of XX into YY and ZZ is dependency preserving and lossless

Which of the above statements is/are correct?

Choose one option
View worked solution

Answer: C

To determine the correctness of the statements, let us analyze the decomposition of X(PQRS)X(PQRS) into Y(PR)Y(PR) and Z(QRS)Z(QRS) under the functional dependencies F={QR→S, R→P, S→Q}F = \{QR \rightarrow S, \: R \rightarrow P, \: S \rightarrow Q \}.

Statement I: Both YY and ZZ are in BCNF

  • For Y(PR)Y(PR): The projected dependency is R→PR \rightarrow P. Since RR is the candidate key of YY, YY is in BCNF.
  • For Z(QRS)Z(QRS): The projected dependencies are QR→SQR \rightarrow S and S→QS \rightarrow Q. The candidate keys of ZZ are QRQR and SRSR. For the dependency S→QS \rightarrow Q, the left-hand side SS is not a superkey of ZZ. Thus, ZZ is not in BCNF.

Therefore, Statement I is False.

Statement II: Decomposition is dependency preserving and lossless

  • Lossless Join: The intersection of the two schemas is Y∩Z={PR}∩{QRS}={R}Y \cap Z = \{PR\} \cap \{QRS\} = \{R\}. Since R→PR \rightarrow P holds on YY, RR is a superkey of YY. Thus, the decomposition is lossless.
  • Dependency Preserving:
    • R→PR \rightarrow P is preserved in Y(PR)Y(PR).
    • QR→SQR \rightarrow S and S→QS \rightarrow Q are preserved in Z(QRS)Z(QRS).
    Since all original FDs are preserved, the decomposition is dependency preserving.

Therefore, Statement II is True.

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

Published
Report a correction
Keep exploringMore Normal Forms questions