Normalization
Normalization
The process of producing a simpler and more reliable database structure is called NORMALIZATION.
Normalization work through different stages known as NORMAL FORM. These stages are:
Each normal form has certain requirements and conditions. If the relation satisfy the conditions of
normal form, it is said to be in that normal form.
1. ROW LEVEL REDUNDANCY: When two rows are exactly the same, it is called row-level
redundancy.KEEP IN MIND: Row-level delicacy can removed by setting a primary key
2. COLUMN LEVEL REDUNDANCY: When any column in a relation contains similar data, then it
will be column-level redundancy
Redundancy problem reason
Redundancy problems can occur for the following reasons.
Insertion Anomaly
Deletion Anomaly
Updation Anomaly
Syntax:
Syntax:
For example:
UPDATION ANOMALY : updation anomaly occurs when a change in one field leads to a
change in many fields.in this anomaly, the updation in the value of specific attribute requires
updation in all records in which that value occurs
Syntax:
For example
Normalization
1- First normal form : A relation is in first normal form if it does not contain any composite or
multivalued attributes OR a relation is in first normal form if every attribute in that relation is
single valued attribute.
A table is in 1 NF if:
Now this isn’t in 1NF as it contain multivalued attributes to overcome this there are three way
1
S.ID S.name Course
1 A C++
1 A C++
2 B JAVA
3 C C
3 C DBMS
2
3