Hi there,
I have a database where employees, departments and divisions are stored. Each employee can belong to either a division or a department (1-to-1 relationship). To store that data I have created three tables: Employees, Departments, Divisions. How do I correctly wire them to store such relationship.
The easiest way is to have in two nullable foreign keys in Employees table (department_id and division_id) but I was wondering if there is a better way to do it?