Relational Decomposition
Arvin Bera
(Lecturer CST KPC)
Learning Outcome
 Types of Decomposition
 Lossless Decomposition
 Dependency Preserving
Types of Decomposition
Lossless Decomposition
 If the information is not lost from the relation that
is decomposed, then the decomposition will be
lossless.
 The lossless decomposition guarantees that the
join of relations will result in the same relation as
it was decomposed.
 The relation is said to be lossless decomposition
if natural joins of all the decomposition give the
original relation.
Example
Example
Example
Lossy Decomposition
 As the name suggests, when a relation is
decomposed into two or more relational schemas,
the loss of information is unavoidable when the
original relation is retrieved.
Lossy Decomposition
Dependency Preserving
 It is an important constraint of the database.
 In the dependency preservation, at least one
decomposed table must satisfy every
dependency.
 If a relation R is decomposed into relation R1 and
R2, then the dependencies of R either must be a
part of R1 or R2 or must be derivable from the
combination of functional dependencies of R1
and R2.
Dependency Preserving
 For example, suppose there is a relation R (A, B,
C, D) with functional dependency set (A->BC).
The relational R is decomposed into R1(ABC)
and R2(AD) which is dependency preserving
because FD A->BC is a part of relation R1(ABC).
Example
 R(A,B,C,D,E)
 {AB->C,B->D,D->E}
 (AB)+=>ABCDE
 B=>D B is the partial key
 So the relation is not in 2NF
 So we have to decompose this relation into two
parts ABC and BDE
 Now we have to decompose the BDE into two
parts
 BD and DE
 Here all the FD’s are reserved decomposition

More Related Content

PDF
Stereochemical Lexicon
PDF
Stereochemical lexicon
ODP
Rationalising radicals
PPTX
#KPC #ETCE & EE #Dgital Signature
PPTX
#KPC #EE & ETCE #Cryptography
PPTX
#KPC #CST #Protocols
PPTX
#KPC #CST #Projection
PPTX
#KPC #CST #Polygon fill
Stereochemical Lexicon
Stereochemical lexicon
Rationalising radicals
#KPC #ETCE & EE #Dgital Signature
#KPC #EE & ETCE #Cryptography
#KPC #CST #Protocols
#KPC #CST #Projection
#KPC #CST #Polygon fill

Recently uploaded (20)

PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
Complications of Minimal Access-Surgery.pdf
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PPTX
Core Concepts of Personalized Learning and Virtual Learning Environments
PDF
semiconductor packaging in vlsi design fab
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
Computer Architecture Input Output Memory.pptx
PDF
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
PDF
advance database management system book.pdf
PDF
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
PDF
International_Financial_Reporting_Standa.pdf
PDF
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 1).pdf
Unit 4 Computer Architecture Multicore Processor.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
Complications of Minimal Access-Surgery.pdf
FORM 1 BIOLOGY MIND MAPS and their schemes
Core Concepts of Personalized Learning and Virtual Learning Environments
semiconductor packaging in vlsi design fab
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
AI-driven educational solutions for real-life interventions in the Philippine...
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Τίμαιος είναι φιλοσοφικός διάλογος του Πλάτωνα
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Computer Architecture Input Output Memory.pptx
MBA _Common_ 2nd year Syllabus _2021-22_.pdf
advance database management system book.pdf
MICROENCAPSULATION_NDDS_BPHARMACY__SEM VII_PCI .pdf
International_Financial_Reporting_Standa.pdf
LEARNERS WITH ADDITIONAL NEEDS ProfEd Topic
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
Ad
Ad

#KPC #CST #Relational Decomposition

  • 2. Learning Outcome  Types of Decomposition  Lossless Decomposition  Dependency Preserving
  • 4. Lossless Decomposition  If the information is not lost from the relation that is decomposed, then the decomposition will be lossless.  The lossless decomposition guarantees that the join of relations will result in the same relation as it was decomposed.  The relation is said to be lossless decomposition if natural joins of all the decomposition give the original relation.
  • 8. Lossy Decomposition  As the name suggests, when a relation is decomposed into two or more relational schemas, the loss of information is unavoidable when the original relation is retrieved.
  • 10. Dependency Preserving  It is an important constraint of the database.  In the dependency preservation, at least one decomposed table must satisfy every dependency.  If a relation R is decomposed into relation R1 and R2, then the dependencies of R either must be a part of R1 or R2 or must be derivable from the combination of functional dependencies of R1 and R2.
  • 11. Dependency Preserving  For example, suppose there is a relation R (A, B, C, D) with functional dependency set (A->BC). The relational R is decomposed into R1(ABC) and R2(AD) which is dependency preserving because FD A->BC is a part of relation R1(ABC).
  • 12. Example  R(A,B,C,D,E)  {AB->C,B->D,D->E}  (AB)+=>ABCDE  B=>D B is the partial key  So the relation is not in 2NF  So we have to decompose this relation into two parts ABC and BDE  Now we have to decompose the BDE into two parts  BD and DE  Here all the FD’s are reserved decomposition