GATE / CS ARCHIVE

GATE CSE 2001 / QUESTION 1.23

Losslessness and dependency preservation

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

GATE 2001, Q1.23 1 mark · MCQ
Report issue

Normalization & Decomposition

Question 1.23, GATE 2001: Relation R(A,B,C,D) has dependencies A→B and C→D and is decomposed into AB and CD. Classify the decomposition as dependency-preserving or not and lossless or not.
Tap to enlarge
Your answer
Answer & solution

Answer: C (no official key was published)

Step through it (3 steps)

Step 1: A→B can be checked entirely in R1(AB), and C→D entirely in R2(CD). Thus the decomposition preserves both supplied dependencies.

Step 2: The two schemas have empty intersection. Their natural join is a Cartesian product, which can create spurious combinations. For instance tuples(a1,b1,c1,d1) and(a2,b2,c2,d2) satisfy the dependencies, but joining their projections also creates(a1,b1,c2,d2) and(a2,b2,c1,d1).

Hence the decomposition is dependency-preserving but not guaranteed lossless, C.

Original paper, page 3