GATE / CS ARCHIVE

GATE CSE 2005 / QUESTION 30

Lossy projection and natural join

Database Management Systems · Normalization & Decomposition · Full GATE CSE 2005 paper

GATE 2005, Q30 1 mark · MCQ
Report issue

Normalization & Decomposition

Question 30, GATE 2005: For instance r(A, B, C, D), project r1=π_ABC(r), r2=π_AD(r) and rejoin s=r1⋈r2. The decomposition is lossy. Which is true? A s⊂r; B r∪s=r; C r⊂s; D r⋈s=s.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Each original tuple contributes matching projections to r1 and r2, so r⊆r1⋈r2=s. A lossy decomposition creates spurious joined tuples; for the stated lossy instance the containment is strict, r⊂s, C. A natural join here does not discard any original tuple.

Projection cannot lose an original tuple when its two projections are rejoined: they still agree on their shared A value. The join may combine components from different original tuples, adding spurious tuples. A lossy instance therefore gives strict inclusion r⊂s. Since r and s have identical schemas, their natural join is their intersection, namely r, not s. Thus only C states the proper direction.

Original paper, page 4