- Why unidirectional one-to-many association on a foreign key is an unusual case and is not recommended?
- Owner : [OwnerId, Name...]
- Car : [CarId, Name...., OwnerId]
- Owner : [OwnerId, Name...]
- Car : [CarId, Name....]
- CarOwner : [OwnerId,CarId]
- table customer(id, idAccount)
- id | idAccount
- 1 1
- 1 2
- table customer(id)
- id |
- 1
- table join (idCustomer, idAccount)
- idCustomer | idAccount
- 1 1
- 1 2