Question: In SQL: I have a table FACILITIES ( FacilityID PRIMARY KEY, FacilityName, FacilityAddress, FacilityPhone, FacilyType ) FacilityType refers to subtype tables of 1 ) AFFILIATION
In SQL: I have a table FACILITIES FacilityID PRIMARY KEY, FacilityName, FacilityAddress, FacilityPhone, FacilyType
FacilityType refers to subtype tables of
AFFILIATION FacilityID PK AffiliationStartDate, AffiliationEndDate, StaffType, AffiliationVerified;
EMPLOYER FacilityID PK HireDate, TermDate, Position, HRContactName
CLIENT FacilityID PK ContactName, ContactEmail, ConstractStart, ContractEnd, ContractActive
As is the FACILITY can be or more of the subtypes which is true. A facility can be both a client and an employer. How do I write a script tying the subtypes to FACILITY? Do I need to add a junction table?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
