GATE CS 2021 · Set-1 · SQL Queries

MCQ · 2 marks · Problem DBMS-SQL-0057

Consider the relation \(R(P,Q,S,T,X,Y,Z,W)\) with the following functional dependencies.\(PQ\rightarrow X;\quad P\rightarrow YX;\quad Q\rightarrow Y; \quad Y\rightarrow ZW\)Consider the decomposition of the relation R into the constituent relations according to the following two decomposition schemes.\(D1:\quad R=[(P,QS,T);\;(P,T,X);\;(Q,Y);\;(Y,Z,W)]\)\(D2:\quad R=[(P,Q,S);\;(T,X);\;(Q,Y);\;(Y,Z,W)]\)Which one of the following options is correct?
  1. A
    D1 is a lossless decomposition, but D2 is a lossy decomposition.
  2. B
    D1 is a lossy decomposition, but D2 is a lossless decomposition.
  3. C
    Both D1 and D2 are lossless decompositions.
  4. D
    Both D1 and D2 are lossy decompositions.

Solve it on GATE DA practice →More Relational Model & SQL problems

Show the worked solutionOfficial GATE Answer Key: Option A.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/357418/gate-cse-2021-set-1-question-33

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com