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?
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)