




















Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





















Fourth Normal Form Reasoning About FD’s + MVD’s
Y , says that if two tuples of R agree on all the attributes of X , then their components in Y may be swapped, and the result will be two tuples that are also in the relation.
4
If we have tuples:
name addr phones beersLiked sue a p1 b sue a p2 b sue a p2 b sue a p1 b Then these tuples must also be in the relation.
5
X Y others
equal exchange
Drinkers(name, areaCode, phone, beersLiked, manf)
10
Here is possible data satisfying these MVD’s:
name areaCode phone beersLiked manf Sue 650 555-1111 Bud A.B. Sue 650 555-1111 WickedAle Pete’s Sue 415 555-9999 Bud A.B. Sue 415 555-9999 WickedAle Pete’s
But we cannot swap area codes or phones by themselves. That is, neither name->->areaCode nor name->->phone holds for this relation.
In 4NF; only dependency is name -> addr.
Not in 4NF. MVD’s name ->-> phones and name ->-> beersLiked apply. No FD’s, so all three attributes form the key.
C.