D
Dkline
I have a database design in which there are numerous many to many
relationships.
On the left side is the Case table and is the "Primary" table. CaseID is the
Primary Key.
There are six tables which have a many to many relationship to this table:
Producer, Insured, Beneficiary, Owner, Investment, Allocator
What is the best design for handling six many to many relationships back to
the Case table?
I thought of a Union table with the CaseID and each of the 6 other tables.
But I believe this would not be a good design.
For example:
Tables: Case Producer, Insured, Beneficiary, Owner, Investment,
Allocator
1stRecord: 1 1 1 1 1
1 1
2ndRecord: 1 Null 2 Null Null
Null Null
The current design forces the user to have a record in it that is mostly
Nulls as this case has two insureds but only one of everything else.
Building six separate Union tables seems to be overkill.
Is there a better way?
relationships.
On the left side is the Case table and is the "Primary" table. CaseID is the
Primary Key.
There are six tables which have a many to many relationship to this table:
Producer, Insured, Beneficiary, Owner, Investment, Allocator
What is the best design for handling six many to many relationships back to
the Case table?
I thought of a Union table with the CaseID and each of the 6 other tables.
But I believe this would not be a good design.
For example:
Tables: Case Producer, Insured, Beneficiary, Owner, Investment,
Allocator
1stRecord: 1 1 1 1 1
1 1
2ndRecord: 1 Null 2 Null Null
Null Null
The current design forces the user to have a record in it that is mostly
Nulls as this case has two insureds but only one of everything else.
Building six separate Union tables seems to be overkill.
Is there a better way?