SlideShare a Scribd company logo
1 of 9
By
Soniya Goyal
 It replaces a relation with a collection of
smaller relations.
 It breaks the table into multiple tables in a
database,
 It should always be lossless, because it
confirms that the information in the original
relation cab ne accurately reconstructed
based on the decomposed relations.
 There are two types of decomposition
methods:
i) Lossless decomposition
ii) Dependency preserving
 Let R be a relation Schema and let f be a set
of functional dependencies on R.
 Let R1 and R2 from a decomposition of R.
R1 ᴧ R2R1
R1 ᴧ R2R2
The attribute common of R1 and R2 must
contain a key for either R1 and R2.
 Dependency preserving if every functional
dependency in R can be logically derived from
functional dependencies of R1 and R2 i.e. ,
(F1UF2)+=F+
 Given a relation schema R<S,F> where F is the
associated set of FDs on the attributes in S. R is
decomposed into the relation schemas R1,R2…Rn
with FDs F1,F2,…..Fn. Then this decomposition of R
is dependency preserving if the closure of F`
(where F`=F1UF2U…U Fn) is the identical to F+
(i.e. F`+
=F+)
 Let R(A,B,C) and F={AB} then decomposition
of R into R1(A,B) and R2(A,C).
 This decomposition is lossless because the
FD {A B} is contained in R1 and the
common attribute A is a key of R1.
 Let R(A,B,C) and F= {AB}.
 Decomposition of R into R1(A,B) and R2(B,C)
is not lossless because the common attribute
B does not functionally determine either A or
C i.e. it is not a key of R1 and R2.
 R(A,B,C,D) with the FDs F= {AB, AC,CD},
consider the decomposition of R into
R1(A,B,C) with the FD F1= {AB, AC} and
R2(C,D) with the FD F2= {CD}.
 In this decomposition all the original FDs can
be logically derived from F1 and F2, hence
the decomposition is dependency preserving .
Also the common attribute C form a key of
R2. The decomposition of R into R1 and R2 is
lossless.
 Given R(A,B,C,D) with the FDs F= { AB, A
C, AD}
 Decomposition of R into R1(A,B,D) and
R2(B,C) with FDs F1= {AB,AD}, F2={} is
lossy because the common attribute B is not a
candidate key of either R1 or R2.
 The FD AC is not implied by any FDs in R1
or R2 Thus, the decomposition is not
dependency preserving.

More Related Content

What's hot (20)

Database Normalization
Database NormalizationDatabase Normalization
Database Normalization
 
Normal forms
Normal formsNormal forms
Normal forms
 
Fd & Normalization - Database Management System
Fd & Normalization - Database Management SystemFd & Normalization - Database Management System
Fd & Normalization - Database Management System
 
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NFDatabase Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
Database Normalization 1NF, 2NF, 3NF, BCNF, 4NF, 5NF
 
Functional dependency
Functional dependencyFunctional dependency
Functional dependency
 
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and AggregationDbms Notes Lecture 9 : Specialization, Generalization and Aggregation
Dbms Notes Lecture 9 : Specialization, Generalization and Aggregation
 
Bcnf
BcnfBcnf
Bcnf
 
Data Manipulation Language
Data Manipulation LanguageData Manipulation Language
Data Manipulation Language
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Lossless decomposition
Lossless decompositionLossless decomposition
Lossless decomposition
 
Multivalued dependency
Multivalued dependencyMultivalued dependency
Multivalued dependency
 
Integrity Constraints
Integrity ConstraintsIntegrity Constraints
Integrity Constraints
 
DBMS: Types of keys
DBMS:  Types of keysDBMS:  Types of keys
DBMS: Types of keys
 
3 Level Architecture
3 Level Architecture3 Level Architecture
3 Level Architecture
 
Er diagrams presentation
Er diagrams presentationEr diagrams presentation
Er diagrams presentation
 
Abstract Data Types
Abstract Data TypesAbstract Data Types
Abstract Data Types
 
Doubly Linked List
Doubly Linked ListDoubly Linked List
Doubly Linked List
 
Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)Computer Science-Data Structures :Abstract DataType (ADT)
Computer Science-Data Structures :Abstract DataType (ADT)
 
Database language
Database languageDatabase language
Database language
 
Relational Algebra,Types of join
Relational Algebra,Types of joinRelational Algebra,Types of join
Relational Algebra,Types of join
 

Similar to Decomposition methods in DBMS

Normalization
NormalizationNormalization
NormalizationavniS
 
Relations and function class xii copy
Relations and function class xii   copyRelations and function class xii   copy
Relations and function class xii copycsanjeive
 
Database normalization
Database normalizationDatabase normalization
Database normalizationVARSHAKUMARI49
 
Chapter-9 Normalization
Chapter-9 NormalizationChapter-9 Normalization
Chapter-9 NormalizationKunal Anand
 
7 relational database design algorithms and further dependencies
7 relational database design algorithms and further dependencies7 relational database design algorithms and further dependencies
7 relational database design algorithms and further dependenciesKumar
 
Relations and functions assignment (2019 20)
Relations and functions assignment (2019 20)Relations and functions assignment (2019 20)
Relations and functions assignment (2019 20)Swati Seth
 
Database Management System [DBMS]
Database Management System [DBMS]Database Management System [DBMS]
Database Management System [DBMS]Shalabh Chaudhary
 

Similar to Decomposition methods in DBMS (13)

Dependency preservation
Dependency preservationDependency preservation
Dependency preservation
 
Normalization
Normalization Normalization
Normalization
 
Normalization
NormalizationNormalization
Normalization
 
L8 design1
L8 design1L8 design1
L8 design1
 
Relations and function class xii copy
Relations and function class xii   copyRelations and function class xii   copy
Relations and function class xii copy
 
Database normalization
Database normalizationDatabase normalization
Database normalization
 
Dependency preserving
Dependency preservingDependency preserving
Dependency preserving
 
Cs501 fd nf
Cs501 fd nfCs501 fd nf
Cs501 fd nf
 
Database management system session 5
Database management system session 5Database management system session 5
Database management system session 5
 
Chapter-9 Normalization
Chapter-9 NormalizationChapter-9 Normalization
Chapter-9 Normalization
 
7 relational database design algorithms and further dependencies
7 relational database design algorithms and further dependencies7 relational database design algorithms and further dependencies
7 relational database design algorithms and further dependencies
 
Relations and functions assignment (2019 20)
Relations and functions assignment (2019 20)Relations and functions assignment (2019 20)
Relations and functions assignment (2019 20)
 
Database Management System [DBMS]
Database Management System [DBMS]Database Management System [DBMS]
Database Management System [DBMS]
 

Recently uploaded

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

Decomposition methods in DBMS

  • 2.  It replaces a relation with a collection of smaller relations.  It breaks the table into multiple tables in a database,  It should always be lossless, because it confirms that the information in the original relation cab ne accurately reconstructed based on the decomposed relations.
  • 3.  There are two types of decomposition methods: i) Lossless decomposition ii) Dependency preserving
  • 4.  Let R be a relation Schema and let f be a set of functional dependencies on R.  Let R1 and R2 from a decomposition of R. R1 ᴧ R2R1 R1 ᴧ R2R2 The attribute common of R1 and R2 must contain a key for either R1 and R2.
  • 5.  Dependency preserving if every functional dependency in R can be logically derived from functional dependencies of R1 and R2 i.e. , (F1UF2)+=F+  Given a relation schema R<S,F> where F is the associated set of FDs on the attributes in S. R is decomposed into the relation schemas R1,R2…Rn with FDs F1,F2,…..Fn. Then this decomposition of R is dependency preserving if the closure of F` (where F`=F1UF2U…U Fn) is the identical to F+ (i.e. F`+ =F+)
  • 6.  Let R(A,B,C) and F={AB} then decomposition of R into R1(A,B) and R2(A,C).  This decomposition is lossless because the FD {A B} is contained in R1 and the common attribute A is a key of R1.
  • 7.  Let R(A,B,C) and F= {AB}.  Decomposition of R into R1(A,B) and R2(B,C) is not lossless because the common attribute B does not functionally determine either A or C i.e. it is not a key of R1 and R2.
  • 8.  R(A,B,C,D) with the FDs F= {AB, AC,CD}, consider the decomposition of R into R1(A,B,C) with the FD F1= {AB, AC} and R2(C,D) with the FD F2= {CD}.  In this decomposition all the original FDs can be logically derived from F1 and F2, hence the decomposition is dependency preserving . Also the common attribute C form a key of R2. The decomposition of R into R1 and R2 is lossless.
  • 9.  Given R(A,B,C,D) with the FDs F= { AB, A C, AD}  Decomposition of R into R1(A,B,D) and R2(B,C) with FDs F1= {AB,AD}, F2={} is lossy because the common attribute B is not a candidate key of either R1 or R2.  The FD AC is not implied by any FDs in R1 or R2 Thus, the decomposition is not dependency preserving.