Higher Normalization NC Lgu
Higher Normalization NC Lgu
For a table to satisfy the Fourth Normal Form, it should satisfy the following
two conditions:
It should be in the Boyce-Codd Normal Form.
And, the table should not have any Multi-valued Dependency.
Let's try to understand what multi-valued dependency is in the next
section.
Below we have a college enrolment table with columns s_id, course and hobby.
As you can see in the table above, student with s_id 1 has opted for two
courses, Science and Maths, and has two hobbies, Cricket and Hockey.
You must be thinking what problem this can lead to, right?
Well the two records for student with s_id 1, will give rise to two more
records, as shown below, because for one student, two hobbies exists,
hence along with both the courses, these hobbies should be specified.
The relation ACP is again decompose into 3 relations. Now, the natural
Join of all the three relations will be shown as:
Using a relation in BCNF, take projections to eliminate MVDs that are not
also FDs
In practice it is unlikely that you will need to do this, because you will have
eliminated independent relation valued attributes before you began
Take projections of 4NF relation to eliminate JDs that are not implied by the
candidate keys, if you can find any