Need some help, practising for an exam and need to make sure I have got this right as it has came up a number of times. Here is the information from a relational representation and I have drawn a ER diagram for this, can someone please tell me if I have got this right or where I have went wrong.
Thanks
model Engineering Company
relation Staff
StaffNo: StaffNumbers
Name: Names
Grade: Grades
AppointmentDate: Dates
primary key StaffNo
relation CompanyProject
ProjectId: ProjectIds
StartDate: Dates
EstimatedFinishDate: Dates
Manager: StaffNumbers
primary key ProjectId
alternate key Manager
foreign key Manager references Staff
constraint ((project CompanyProject over ProjectId) difference
(project WorksOn over ProjectId)) is empty
constraint (( project CompanyProject over ProjectId) difference
( project Machine over ProjectId)) is empty
relation WorksOn
ProjectId: ProjectIds
StaffNo: StaffNumbers
primary key (ProjectId, StaffNo)
foreign key ProjectId references CompanyProject
foreign key StaffNo references Staff
relation Machine
MachineId: MachineIds
Description: Descriptions
DateOfLastService: Dates
ProjectId: ProjectIds
primary key MachineId
foreign key ProjectId ** references** CompanyProject
relation MachineTraining
MachineId: MachineIds
StaffNo: StaffNumbers
DateOfTraining: Dates
primary key(MachineId, StaffNo)
foreign key MachineId references Machine
foreign key StaffNo references Staff