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
1)AFFILIATION (FacilityID PK, AffiliationStartDate, AffiliationEndDate, StaffType, AffiliationVerified);
2)EMPLOYER (FacilityID PK, HireDate, TermDate, Position, HRContactName)
3) CLIENT (FacilityID PK, ContactName, ContactEmail, ConstractStart, ContractEnd, ContractActive)
As is, the FACILITY can be 1 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 blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!