Normal Forms
Normal Forms
Content
In the table above, we have data of 4 Computer Sci. students. As can be seen, data for
the fields Unit, Hod(Head of Department) and Office_tel is repeated for the students
who are in the same Unit in the college, this is Data Redundancy.
Problems Without Normalization
Ifa table is not properly normalized and have data redundancy then it
will not only eat up extra memory space but will also make it difficult to
handle and update the database, without facing data loss.
Also, if we have to insert data of 100 students of same unit, then the unit
information will be repeated for all those 100 students.
1 10 1 82 Mr. J
2 10 2 77 Mr. C++
3 11 1 85 Mr. J
4 11 3 82 Mr. C#
5 11 4 95 Mr. P
To remove partial dependency, we create another table,
subject table.
Score_id Student_id Subject_id Marks
1 10 1 82
2 10 2 77
3 11 1 85
4 11 3 82
5 11 4 95
1 Java Mr. J
2 C++ Mr. C++
3 C# Mr. C#
4 Php Mr. P
Third Normal Form (3NF)
Exam table
Boyce and Codd Normal Form (BCNF)
Boyce and Codd Normal Form is a higher version of the Third Normal
form. This form deals with certain type of anomaly that is not handled
by 3NF. A 3NF table which does not have multiple overlapping
candidate keys is said to be in BCNF. For a table to be in BCNF,
following conditions must be satisfied:
BCNF