I have two tables: counterparties and customers. And both have an address field. I don't know, would it be better if I create third table "addresses"?
The first way:
Counterparty
- id
- name
- city
- streetname
- room
Customer
- id
- firstName
- lastName
- city
- streetname
- room
The second way:
Counterparty
- id
- name
- addressID
Customer
- id
- firstName
- lastName
- addressID
Address
- id
- city
- streetname
- room
What is better way?
The first solution is better, unless either:
There are no other reasons to choose the second solution.