Seeking some feedback on the appropriate design of the tables in an E-R diagram.
One table contains a list of jobs (tblJob). Attributes would be: JobID, JobName.
Second table is the linking table between the jobs and the persons performing the jobs. (tblJobPerson). I was planning for this table to be the classic linking table to allow for M:N relationships between jobs and persons. Attributes would be: JobID, PersonID.
Third table contains the list of persons (tblPerson). Attributes for this table would be: PersonID, FName, MName, LName, Other. The Other attribute would be used for entries like "Jr." or "Sr."
It then occurred to me that the "Person" working on a job could also be an outside vendor or contractor.
So my question is: Should I create a fourth table (tblContractor) and create a 1:M relationship between that table and the PersonID foreign key in the second (linking) table?
Alternatively, I'm wondering if I need to create two subtype entities (one for individuals and one for contractors) that have 1:1: relationships with the table tblPerson.
Any suggestions ?
One table contains a list of jobs (tblJob). Attributes would be: JobID, JobName.
Second table is the linking table between the jobs and the persons performing the jobs. (tblJobPerson). I was planning for this table to be the classic linking table to allow for M:N relationships between jobs and persons. Attributes would be: JobID, PersonID.
Third table contains the list of persons (tblPerson). Attributes for this table would be: PersonID, FName, MName, LName, Other. The Other attribute would be used for entries like "Jr." or "Sr."
It then occurred to me that the "Person" working on a job could also be an outside vendor or contractor.
So my question is: Should I create a fourth table (tblContractor) and create a 1:M relationship between that table and the PersonID foreign key in the second (linking) table?
Alternatively, I'm wondering if I need to create two subtype entities (one for individuals and one for contractors) that have 1:1: relationships with the table tblPerson.
Any suggestions ?