4NF Normal Form A relation R is in Fourth Normal Form(4NF) if :
- It is in BCNF
- It has no Multivalued Dependencies
Definition of Multivalued Dependency
Let R be the relational schema, X,Y be the attribute sets over R. A MVD (X→→Y) exists on a relation R : If two tuples t1 and t2 exists in R, such that t1[X] = t2[Y] then two tuples t3 and t4 should also exist in R with the following properties where Z = R – {X ∪ Y}:- t3[X] = t4[X] = t1[X] = t2[X]
- t3[Y] = t1[Y] and t4[Y] = t2[Y]
- t3[Z] = t2[Z] and t4[Z] = t1[Z]
To understand the concept of Multivalued Dependency – Click Here
Removal of Multivalued Dependency :
Decompose R using the same technique as for BCNF :- XY is one of the decomposed relations.
- All but Y – X is the other decomposed relation.
| Man(M) | Phones(P) | Dogs_Likes(D) | Address(A) |
| M1 | P1 | D1 | 49-ABC,Bhiwani(HR.) |
| M1 | P2 | D2 | 49-ABC,Bhiwani(HR.) |
| M2 | P3 | D2 | 36-XYZ,Rohtak(HR.) |
| M1 | P1 | D2 | 49-ABC,Bhiwani(HR.) |
| M1 | P2 | D1 | 49-ABC,Bhiwani(HR.) |
- FD1 : Man →→ Phones
- FD2 : Man →→ Dogs_Like
- FD3 : Man → Address
In the above relations for both the MVD’s – ‘X’ is Man, which is again not the super key, but as X ∪ Y = R i.e. (Man & Phones) together make the relation.
So, the above MVD’s are trivial and in FD 3, Address is functionally dependent on Man, where Man is the key in Person_Address, hence all the three relations are in 4NF.
Point : Every nontrivial MVD is really an FD with a superkey on the left, if the relation is in 4NF.]]>