Question:

Consider the relation \(R(P,Q,S,T,X,Y,Z,W)\) with the following functional dependencies: 
\[ PQ \rightarrow X; P \rightarrow YX; Q \rightarrow Y; Y \rightarrow ZW \] Consider the decomposition of the relation \(R\) into the constituent relations according to the following two decomposition schemes. \[ \begin{aligned} D_1 &: R = [(P,Q,S,T);\; (P,T,X);\; (Q,Y);\; (Y,Z,W)] \\ D_2 &: R = [(P,Q,S);\; (T,X);\; (Q,Y);\; (Y,Z,W)] \end{aligned} \] Which one of the following options is correct?

Show Hint

A decomposition is lossless if at least one of the decomposed relations contains a key of the original relation.
Updated On: Jan 2, 2026
  • \(D_1\) is a lossless decomposition, but \(D_2\) is a lossy decomposition.
  • \(D_1\) is a lossy decomposition, but \(D_2\) is a lossless decomposition.
  • Both \(D_1\) and \(D_2\) are lossless decompositions.
  • Both \(D_1\) and \(D_2\) are lossy decompositions.
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is A

Solution and Explanation

Step 1: Identify candidate keys of \(R\).
Using the given functional dependencies:
From \(P \rightarrow YX\) and \(Y \rightarrow ZW\), we get \(P \rightarrow X,Y,Z,W\).
From \(Q \rightarrow Y\), and already having \(Y \rightarrow ZW\), we get additional attributes.
Thus, \((P,Q,S,T)\) forms a key for \(R\).

Step 2: Check decomposition \(D_1\).
The relation \((P,Q,S,T)\) contains a key of \(R\). Hence, by the lossless join test, \(D_1\) is a lossless decomposition.

Step 3: Check decomposition \(D_2\).
None of the decomposed relations in \(D_2\) contains a key of the original relation \(R\).
Therefore, joining the decomposed relations may produce spurious tuples.

Step 4: Conclusion.
Thus, \(D_1\) is lossless, while \(D_2\) is lossy.

Final Answer: (A)

Was this answer helpful?
0
0