Decomposition refers to the division of tables into multiple tables to produce consistency in the data. In this article, we will learn about the Database concept. This article is related to the concept of Decomposition in DBMS. It explains the definition of Decomposition, types of Decomposition in DBMS, and its properties.
What is Decomposition in DBMS?
When we divide a table into multiple tables or divide a relation into multiple relations, then this process is termed Decomposition in DBMS. We perform decomposition in DBMS when we want to process a particular data set. It is performed in a database management system when we need to ensure consistency and remove anomalies and duplicate data present in the database. When we perform decomposition in DBMS, we must try to ensure that no information or data is lost.
Decomposition in DBMSTypes of Decomposition
There are two types of Decomposition:
- Lossless Decomposition
- Lossy Decomposition
Types of DecompositionLossless Decomposition
The process in which where we can regain the original relation R with the help of joins from the multiple relations formed after decomposition. This process is termed as lossless decomposition. It is used to remove the redundant data from the database while retaining the useful information. The lossless decomposition tries to ensure following things:
- While regaining the original relation, no information should be lost.
- If we perform join operation on the sub-divided relations, we must get the original relation.
Example:
There is a relation called R(A, B, C)
Now we decompose this relation into two sub relations R1 and R2
R1(A, B)
R2(B, C)
After performing the Join operation we get the same original relation
Lossy Decomposition
As the name suggests, lossy decomposition means when we perform join operation on the sub-relations it doesn't result to the same relation which was decomposed. After the join operation, we always found some extraneous tuples. These extra tuples genrates difficulty for the user to identify the original tuples.
Example:
We have a relation R(A, B, C)
Now , we decompose it into sub-relations R1 and R2
R1(A, B)
R2(B, C)
Now After performing join operation
A
| B
| C
|
---|
1
|
2
|
1
|
2
|
5
|
3
|
2
|
3
|
3
|
3
|
5
|
3
|
3
|
3
|
3
|
Properties of Decomposition
- Lossless: All the decomposition that we perform in Database management system should be lossless. All the information should not be lost while performing the join on the sub-relation to get back the original relation. It helps to remove the redundant data from the database.
- Dependency Preservation: Dependency Preservation is an important technique in database management system. It ensures that the functional dependencies between the entities is maintained while performing decomposition. It helps to improve the database efficiency, maintain consistency and integrity.
- Lack of Data Redundancy: Data Redundancy is generally termed as duplicate data or repeated data. This property states that the decomposition performed should not suffer redundant data. It will help us to get rid of unwanted data and focus only on the useful data or information.
Conclusion
Decomposition is an important term in Database Management system. It refers to the method of splitting the realtions into multiple relation so that database operations are performed efficiently. There are two types of decomposition one is lossless and the other is lossy decomposition. The properties of Decomposition helps us to maintain consistency, reduce redundant data and remove the anomalies.
Similar Reads
Lossless Decomposition in DBMS
The original relation and relation reconstructed from joining decomposed relations must contain the same number of tuples if the number is increased or decreased then it is Lossy Join decomposition. Lossless join decomposition ensures that never get the situation where spurious tuples are generated
5 min read
Dependency Preserving Decomposition - DBMS
In a Database Management System (DBMS), dependency-preserving decomposition refers to the process of breaking down a complex database schema into simpler, smaller tables, such that all the functional dependencies of the original schema are still enforceable without needing to perform additional join
7 min read
Denormalization in Databases
Denormalization focuses on combining multiple tables to make queries execute quickly. It adds redundancies in the database though. In this article, weâll explore Denormalization and how it impacts database design. This method can help us to avoid costly joins in a relational database made during nor
6 min read
Entity in DBMS
Database management systems (DBMS) are large, integrated collections of data. They play an important role in modern data management, helping agencies keep, retrieve, and manage data effectively. At the core of any DBMS is the concept of entities, which is a basic concept that refers to real-world de
5 min read
Normal Forms in DBMS
In the world of database management, Normal Forms are important for ensuring that data is structured logically, reducing redundancy, and maintaining data integrity. When working with databases, especially relational databases, it is critical to follow normalization techniques that help to eliminate
8 min read
Module Decomposition | System Design
Module decomposition is a critical aspect of system design, enabling the breakdown of complex systems into smaller, more manageable modules or components. These modules encapsulate specific functionalities, making the system easier to understand, maintain, and scale. In this article, we will explore
9 min read
Fragmentation in Distributed DBMS
Fragmentation is a process of dividing the whole or full database into various subtables or sub relations so that data can be stored in different systems. The small pieces or sub relations or subtables are called fragments. These fragments are called logical data units and are stored at various site
5 min read
QR Decomposition in Machine learning
QR decomposition is a way of expressing a matrix as the product of two matrices: Q (an orthogonal matrix) and R (an upper triangular matrix). In this article, I will explain decomposition in Linear Algebra, particularly QR decomposition among many decompositions. What is QR Decomposition?Decompositi
9 min read
What is Decomposition Computational Thinking?
Computational thinking is a way of thinking logically and solving problems in an organized manner. It is the process of approaching a problem in a structured way and creating & expressing an answer for such a problem that can be easily carried out by a system or machine. This is not only for pro
4 min read
Properties of Relational Decomposition
When a relation in the relational model is not appropriate normal form then the decomposition of a relation is required. In a database, breaking down the table into multiple tables termed as decomposition. The properties of a relational decomposition are listed below : Attribute Preservation: Using
3 min read