Often people talk about a ratio of 1: 0..1 and call it 1: 1. In fact, a typical DBMS cannot support a literal 1: 1 relationship in any case.
As such, I believe it is fair to relate to the subclassification here, although this technically requires a 1: 0..1 relationship, not a literal 1: 1 concept.
A 1: 0..1 is very useful when you have fields that are the same for multiple objects / tables. For example, contact information fields, such as address, phone number, e-mail, etc., Which can be common for employees and customers, can be divided into an entity intended solely for contact information.
The contact table will contain general information such as address and phone number.
Thus, the employee table contains information about employees, such as employee number, date of hiring, etc. He will also have a link to a foreign key for the contact table for the contact information of the employee.
The client table will store information about the client, such as an email address, the name of your employer, and possibly some demographic information, such as gender and / or marital status. The client will also have a link to a foreign key for the contact table for their contact information.
Moreover, each employee will have a contact, but not every contact will have an employee. The same concept applies to customers.
source share