|
R = (SSN, FName, LName, DNumber, DName, MgrSSN) Functional Dependencies: SSN → FName, LName, DNumber DNumber → DName, MgrSSN |
R = (SSN, FName, LName, DNumber, DName, MgrSSN) SSN → FName, LName, DNumber DNumber → DName, MgrSSN Replace: SSN ==> A FName ==> B LName ==> C DNumber ==> D DName ==> E MgrSSN ==> F |
|
Find a set of relations that satisfy the 3NF
Necessary attribute in a key: A Check sufficiency: A+ = A = A B C D (Because A → B, C, D) = A B C D E F (Because D → E, F) Sufficient ! |
Therefore, the key of the relation is:
|
|
|
Consider next functional dependency
|
Decompose:
|
Check R1
|
Check R2
|
A = SSN D = DNumber B = FName E = DName C = LName F = MgrSSN A -> B, C, D, E, F D -> E, F |
Note:
|