I have these two tables.
If I make sure that they are in 3NF is this the correct way? My answer:
StaffDetails(StaffID, SName, DOB, DivisionNo*)
Division(DivisionNo, DivName, DivSupervisorID)
StaffProject(StaffId*, ProjectNo*, SName, ProjectName, HoursAssigned)
Project(ProjectNo, ProjectName)
The primary keys are bolded but what is the reason behind an asterisk?
No, its not quite 3NF as you duplicate
SName
andStaffProject
in theStaffProject
table.The tables should probably be:
StaffDetails
Division
StaffProject
Project
As for your notation questions, that is a convention your tutor appears to be using but is not necessarily globally recognised so you would be best asking them; however it appears that primary keys are underlined and foreign keys have an asterix next to them.
StaffProject
would have columns that are both part of a composite primary key and a foreign key so would have both notations.