NIMCET, GATE, CUET & CBSE test series are live — start practicing free
syllabuzAI

Lossless and Dependency-Preserving Decomposition | GATE CSE

Learn how to test lossless join and dependency-preserving decompositions, the chase method, 3NF synthesis and BCNF decomposition for GATE CSE DBMS, with examples.

8 min read

AS

Aman Singh

Updated 26 November 2026

On this page

Quick answer: Splitting R into R₁, …, Rₙ is a lossless join decomposition if joining the parts always gives back exactly R. A lossy decomposition adds spurious tuples; it never loses any. For two parts, the test is: R₁ ∪ R₂ = R, R₁ ∩ R₂ is not empty, and R₁ ∩ R₂ is a super key of R₁ or of R₂. A decomposition is dependency preserving if the FDs that hold inside the parts together imply every FD of the original set F. Any relation can be split into 3NF in a way that is both lossless and dependency preserving (the synthesis algorithm). A BCNF decomposition is always lossless but may lose a dependency.

GATE regularly asks whether a given decomposition is lossless, dependency preserving, both or neither. This topic is part of the Normalization chapter.

Why decompose?

Normalization removes redundancy by splitting a relation. A good decomposition must not lose information (lossless join), and ideally every FD can still be checked inside a single table (dependency preservation).

Lossless join decomposition

Joining the parts always gives at least the original relation:

R1⋈R2⋈⋯⋈Rn⊇RR_1 \bowtie R_2 \bowtie \dots \bowtie R_n \supseteq R

  • If equality always holds, the decomposition is lossless.
  • If the join can contain extra (spurious) tuples, it is lossy.

Test for two relations

R → R₁, R₂ is lossless if and only if all three hold:

  • R₁ ∪ R₂ = R, so every attribute is covered.
  • R₁ ∩ R₂ is not empty.
  • R₁ ∩ R₂ → R₁ or R₁ ∩ R₂ → R₂, so the common attributes are a super key of one side.

Lossless example: R(A, B, C) with F = {A → B}, split into (A, B) and (A, C). The common attribute is A, and A → B makes A a key of (A, B). Lossless.

Lossy example: the same R and F, split into (A, B) and (B, C). The common attribute B determines neither side. Lossy.

Test for three or more relations (chase method)

Step 1: Build a table with one row per Rᵢ and one column per attribute. In row i, put a distinguished symbol a in column j if Aⱼ is in Rᵢ; otherwise put a row-specific symbol b.

Step 2: For each FD X → Y, wherever two rows agree on X, make them agree on Y. If either row has an a in that column, use a.

Step 3: Repeat until nothing changes. If some row becomes all a's, the decomposition is lossless; otherwise it is lossy.

A faster shortcut for a chain of parts: merge two parts that pass the two-relation test, then test the merged relation against the next part.

Dependency-preserving decomposition

Let Fᵢ be the FDs in F⁺ that use only attributes of Rᵢ (the projection of F on Rᵢ). In general:

(F1∪⋯∪Fn)+⊆F+(F_1 \cup \dots \cup F_n)^+ \subseteq F^+

  • If the two sides are equal, the decomposition is dependency preserving.
  • Otherwise, some FD can only be checked by joining tables.

Practical test for each FD X → Y in F:

Step 1: Start with result = X.

Step 2: For each Rᵢ, add (closure of (result ∩ Rᵢ) under F) ∩ Rᵢ to the result.

Step 3: Repeat until the result stops growing. The FD is preserved if and only if Y is inside the result.

Example: preserved even though an FD sits in no single table

R(A, B, C, D) with F = {A → B, B → C, C → D, D → A}, split into (A, B), (B, C) and (C, D).

  • All four attributes are equivalent, so the projections give A ↔ B, B ↔ C and C ↔ D.
  • D → A is not inside any one table, but D → C → B → A follows from the projections.
  • So the decomposition is dependency preserving.

Example: a dependency is lost

R(A, B, C) with F = {AB → C, C → B}, split into (A, C) and (B, C).

  • Lossless: the common attribute C determines B, so C is a key of (B, C).
  • Not dependency preserving: AB → C can't be derived inside (A, C) or (B, C).
  • Both parts are in BCNF, so this is the classic case where BCNF costs a dependency.

Comparison by normal form

Property3NFBCNF
Lossless decomposition always possibleYesYes
Lossless and dependency-preserving decomposition always possibleYesNo
Free of FD-based redundancyNot alwaysYes

3NF synthesis algorithm (lossless and dependency preserving)

Step 1: Find a minimal cover of F.

Step 2: For each FD X → A in the minimal cover, create a relation (X, A). Merge relations that have the same left side.

Step 3: If no relation contains a candidate key of R, add one relation made of a candidate key.

Step 4: Remove any relation whose attributes are contained in another relation.

Example: R(A, B, C, D, E) with F = {A → B, B → C, CD → E}.

  • F is already a minimal cover, so the relations are (A, B), (B, C) and (C, D, E).
  • The candidate key is AD (A gives B and C, and with D we get E). AD is in none of the relations, so add (A, D).
  • Result: (A, B), (B, C), (C, D, E), (A, D). All are in 3NF, and the decomposition is lossless and dependency preserving.

BCNF decomposition algorithm (lossless)

While some relation Rᵢ has a non-trivial FD X → Y where X is not a super key of Rᵢ, replace Rᵢ with (X ∪ Y) and (Rᵢ − (Y − X)).

Example: R(A, B, C, D) with F = {AB → C, C → D}. The key is AB, so C → D breaks BCNF. Split into (C, D) and (A, B, C). Both are in BCNF, the decomposition is lossless, and here it also preserves both FDs.

Summary table

TestRule
Two-part lossless testR₁ ∩ R₂ is a super key of R₁ or R₂
Lossy resultThe join has extra (spurious) tuples, never fewer
Dependency preservingThe projected FDs together imply every FD of F
3NF synthesisOne table per minimal-cover FD, plus a key table if needed
BCNF decompositionAlways lossless; may lose dependencies

Exam tips

  • For two parts, find the common attributes, take their closure, and check whether it covers either part. That settles losslessness in seconds.
  • For dependency preservation, don't just look for each FD inside a table. Check whether it can be derived from the projected FDs.
  • If the options include {AB → C, C → B}, expect the "BCNF loses a dependency" trap.

Common mistakes

  • Saying a lossy join loses rows. It adds spurious rows.
  • Checking only the FDs written inside each table for dependency preservation. Use projections of F⁺.
  • Forgetting the key relation in 3NF synthesis.
  • Assuming a BCNF decomposition always preserves dependencies.

Practice questions

Q1. R(A, B, C, D) with F = {A → B, C → D}, split into (A, B) and (C, D). Is it lossless?

Answer: No. The two parts share no attribute, so the second condition fails.

Q2. R(A, B, C, D) with F = {A → BC}, split into (A, B, C) and (A, D). Is it lossless? Is it dependency preserving?

Answer: The common attribute A is a key of (A, B, C), so it is lossless. A → BC lies within (A, B, C), so it is preserved. Both.

Q3. Why can a lossy decomposition never lose tuples when you join the parts back?

Answer: Every original tuple projects onto each part and joins back with itself, so the join always contains R. The problem is only the extra tuples.

FAQs

What is a lossless join decomposition?

It is a decomposition whose natural join always gives back exactly the original relation, with no spurious tuples.

How do you check if a decomposition into two tables is lossless?

Check that the common attributes are not empty and that they functionally determine all attributes of at least one of the two tables.

What is dependency preservation in DBMS?

It means every functional dependency of the original relation can be enforced using only the FDs that hold inside the individual decomposed tables.

Why is 3NF often preferred over BCNF in design?

A 3NF decomposition that is both lossless and dependency preserving always exists. That is not guaranteed for BCNF.

What are spurious tuples?

They are extra rows that appear when you join the parts of a lossy decomposition. They were never in the original relation.

Conclusion

Check every decomposition for losslessness first with the common-attribute test, then for dependency preservation with the closure-based test. Go back to the Normalization chapter, revise normal forms, or review functional dependencies.

Concept Check

EASY

Consider the following transaction involving two bank accounts x and y.

read(x); x := x - 50; write(x); read(y); y := y + 50; write(y)

The constraint that the sum of the accounts x and y should remain constant is that of

Suggested for you