NormalizationSNotes
NormalizationSNotes
Makes it easier to manage and maintain the data and ensures that the database is adaptable to
changing business needs.
Database normalization is the process of organizing the attributes of the database to reduce
or eliminate data redundancy (having the same data but at different places).
Insertion Anomalies
Deletion anomalies
Updation anomalies
Dependencies
1NF
2NF
1NF and every non-primary key attribute is fully functionally dependent on Primary key. Shouldn't
have partial dependency.
3NF
2NF, If no transitive dependency for non-prime attributes. X is Super key/ Y is a Prime attribute.
BCNF
Should be in 3NF, X should be super key for every FD in a given relation. X>Y
4NF
5NF
Advantages of Normalization
Disadvantages of Normalization
Increased performance overhead and potential for slower query execution times.
Loss of data context.
Requires expert knowledge of database design and normalization process.
Increase complexity of Database design.
Partial Dependency: If one attribute in a composite primary key determines a non-primary attribute.
General Form:
Examples:
Key Points:
Trivial dependencies do not provide new information about the relationships between
attributes.
In contrast, non-trivial functional dependencies occur when the dependent attribute is not
part of the determinant set (e.g., {A} → {B}, where B is not in A).