Relation: (stores information of employees AND projects)
EmpProj(SSN, FName, LName, PNumber, PName, PLocation, Hours) |
Functional dependencies:
℉ = { SSN → FName, LName PNumber → PName, PLocation SSN,PNumber → Hours } |
Initialize: SSN+ := SSN; |
Initialized: PNumber+ := PNumber; |
Initialize: (SSN,PNumber)+ := SSN,PNumber; |
|
|
Because:
|
|
Because:
|
So every attribute in (SSN,PNumber) is necessary to form the super key
Therefore, (SSN,PNumber) is minimal
In other words: (SSN,PNumber) is a key .