-2

I need help with an exercise; I have three entities: Employee(id, name) , Technician ( name, city , salary) and Medic ( id, hospital, room ) . Technician and medic are linked to Employee by a is a relationship. The problem is that I dont know how to implement the IS-A in SQL.

1 Answers1

0

I would create two new tables, each one for the 'a is a' relationship. For example: employee_technician (and employee_medic)

'employee_technician's Primary Key would consist of two columns: employee's PK and technician's PK.

D Ie
  • 841
  • 7
  • 23