If you have a one to many relationship between two entities e.g employee and department. with employee being on the one side and department being on the many side.
Lets say the many side is non obligatory(ie optional), will this type of relationship require 3 tables ie one for the employee, one for the department and a third table containing the primary keys of both the employee and department ie a join table(just like is done with many to many relationships)?
if so, why? and if so, which of the primary keys in the third table( which are now foreign keys) will be the primary key
Lets say the many side is non obligatory(ie optional), will this type of relationship require 3 tables ie one for the employee, one for the department and a third table containing the primary keys of both the employee and department ie a join table(just like is done with many to many relationships)?
if so, why? and if so, which of the primary keys in the third table( which are now foreign keys) will be the primary key