I was hoping someone could tell me if this would be bad database design:
Let’s say I have two tables:
Person
Contract
And let’s say I get two types of contracts, a single contract (which involves only one person) and a joint contract (which involves two people). There are no other permutations.
It would be the simplest to set up the Contract table with two FK fields, one of which is nullable, i.e.:
Contract:
ContractID Description PersonID PersonID_Second
1 Single person contract 1112 NULL
2 Joint contract 1073 900
Is this a bad idea?
Thanks
Karl
Two more cents: Are the relationships between the two Persons and the Contract equivalent? Is there a “first” person and a “second along for the ride” person, or do they both share equal importance with regards to this contract? And is the distinction between one-person and two-person (and possible future N-person) contracts an important attribute of the contract?