Concept of Normalization
- Get link
- X
- Other Apps
1. Trivial and Non-Trivial Functional Dependencies
Definition of Functional Dependency
A functional dependency X→Y exists when the value of attribute determines the value of attribute .
Trivial Dependency:
A dependency is trivial if is a subset of .
Example:
Consider a relation :- is trivial because is already part of the left-hand side.
Non-Trivial Dependency:
A dependency is non-trivial if is not a subset of .
Example:
In a relation , is non-trivial because is not part of .
Significance:
Trivial dependencies do not provide new information, whereas non-trivial dependencies are critical for normalization and reducing redundancy.
2. Non-Loss Decomposition and Functional Dependencies
Non-Loss Decomposition
A decomposition is non-loss if the original relation can be reconstructed using the natural join of its decomposed relations without losing data.
Condition for Non-Loss Decomposition:
- At least one of the intersecting attributes should be a superkey in one of the relations.
Example:
Relation with :
- Decompose into and .
- Join and on to reconstruct the original relation.
3. First, Second, and Third Normal Forms (1NF, 2NF, 3NF)
First Normal Form (1NF)
A relation is in 1NF if all attributes have atomic values (indivisible).
Example:

Violation:
Subjects column contains multiple values.
Solution:

Second Normal Form (2NF)
A relation is in 2NF if it is in 1NF and there are no partial dependencies.
- Partial Dependency: A non-prime attribute depends on part of a composite key.
Example:

is the composite key. If the student’s name depended only on StudentID, it violates 2NF.
Solution: Decompose into:

Third Normal Form (3NF)
A relation is in 3NF if it is in 2NF and has no transitive dependency.
- Transitive Dependency: A non-prime attribute depends on another non-prime attribute.
Example:
EmployeeID | DepartmentID | DepartmentName |
---|
Here, depends on , which depends on E, violating 3NF.
Solution: Decompose into two relations:

4. Dependency Preservation
Dependency preservation ensures that all functional dependencies hold in the decomposed relations.
Example:
Relation with and :
- Decompose into and .
- Dependencies are preserved if each original dependency can be derived from the decomposed relations.
5. Boyce-Codd Normal Form (BCNF)
BCNF ensures that every determinant (attribute on the left of a dependency) is a superkey.
Example:

If Solution: Decompose into:
6. Multi-Valued Dependencies and Fourth Normal Form (4NF)
A relation is in 4NF if it is in BCNF and has no multi-valued dependencies.
Multi-Valued Dependency Example:
Here, Subject and Hobby are independent of each other but depend on StudentID.
Solution: Decompose into:

7. Join Dependencies and Fifth Normal Form (5NF)
A relation is in 5NF if it cannot be decomposed further while preserving dependencies.
Example:

Solution: Decompose into:
- Get link
- X
- Other Apps
Comments
Post a Comment