Fourth Normal Form (4NF)
When attributes in a relation have multi-valued dependency, further Normalization to 4NF and 5NF are required. Let us first find out what multi-valued dependency is.
A multi-valued dependency is a typical kind of dependency in which each and every attribute within a relation depends upon the other, yet none of them is a unique primary key.
Consider a vendor supplying many items to many projects in an organization. The following are the assumptions:
- A vendor is capable of supplying many items.
- A project uses many items.
- A vendor supplies to many projects.
- An item may be supplied by many vendors.
A multi valued dependency exists here because all the attributes depend upon the other and yet none of them is a primary key having unique value.
|Vendor Code||Item Code||Project No.|
The given relation has a number of problems. For example:
- If vendor V1 has to supply to project P2, but the item is not yet decided, then a row with a blank for item code has to be introduced.
- The information about item I1 is stored twice for vendor V3.
Observe that the relation given is in 3NF and also in BCNF. It still has the problem mentioned above. The problem is reduced by expressing this relation as two relations in the Fourth Normal Form (4NF). A relation is in 4NF if it has no more than one independent multi valued dependency or one independent multi valued dependency with a functional dependency.
The table can be expressed as the two 4NF relations given as following. The fact that vendors are capable of supplying certain items and that they are assigned to supply for some projects in independently specified in the 4NF relation.
|Vendor Code||Item Code|
|Vendor Code||Project No.|
Posted By-: Vissicomp Technology Pvt. Ltd.
Website -: http://www.vissicomp.com