Database Normalisation
Database Normalisation
Management
NORMALIZATION OF DATABASE
Normalization of Database
Updating Anomaly :
To update address of a student who occurs twice or more than
twice in a table, we will have to update S.Address column in all
the rows, else data will become inconsistent.
Insertion Anomaly :
Suppose for a new admission, we have a Student id(S_id), name
and address of a student but if student has not opted for any
subjects yet then we have to insert NULL there, leading to
Insertion Anomaly.
Deletion Anomaly :
If (S_id) 401 has only one subject and temporarily he drops it,
when we delete that row, entire student record will be deleted
along with it.
Normalization of Database
Normalization Rule
Normalization rule are divided into following normal form.
First Normal Form
Second Normal Form
Third Normal Form
BCNF
Normalization of Database
Student Table :
Stude Ag Subject
nt e
Adam 15 Biology, Maths
Alex 14 Maths
Stuart 17 Maths
Normalization of Database
Student Age
Adam 15
Alex 14
Stuart 17
Normalization of Database
Student Subject
Adam Biology
Adam Maths
Alex Maths
Stuart Maths
Normalization of Database
Address Table :