|
What we have designed so far:
Department( DName, DNumber, Managed-by(Employee, StartDate), {Locations}, Controls({Projects}) ) Project(PName, PNumber, Location) Employee(SSN, Name, Addr, Sal, Sex, BDate, Works-for(Department), Works-on({Proj, #hours}), Supervised-by(Employee), Cares-for({Dependent})) Dependent(FName, Sex, BDate, RelationToEmp) (Underlined attributes are key attributes) |
|
|
We must remove them from the entities:
Department( DName, DNumber, |
Note: I put the "StartDate" and "#hours" separately in quotes to highlight the entities that are involved in the relationships
|
Graphical representation: