O
oldblindpew
John, Jerry, Steve:
I THINK I'VE GOT IT!! It came to me last night driving home from work. I
need the Agreements table and the Requirements table in a many-to-many
relationship, with the Certificates table serving as the junction table. But
since the Requirements table will actually do double duty as providing both
insurance requirement values and certificate offering values, I will refer to
it as the Insurance Parameters table instead.
TblAgreements
AgreementID
<Agreement fields>
TblInsParameters
InsParameterID
InsParameterDescrip
<Other fields, if any>
TblCertificates
CertificateID
AgreementID
InsRequirementID (same as InsParameterID)
InsOfferingID (same as InsParameterID)
So if the InsOfferingID and the InsRequirementID match, then the Certificate
is valid for that one particular parameter.
Now, it is not clear from my reference books whether a junction table must
use a composite primary key consisting of values that match the primary keys
from the two joined tables, or, whether you are free to use a separate
primary key. I hope the latter is the case, because I've grown prejudiced
against composite keys.
I wasn't sure where in the thread to put this posting, so I put it here in
hopes you all find it. Thanks for your suggestions, and I would appreciate
any further suggestions, corrections or advice you may have to offer on this
plan of attack. I'm sure as I get on with this there will be plenty of
unforeseen obstacles to negotiate.
--OBP
I THINK I'VE GOT IT!! It came to me last night driving home from work. I
need the Agreements table and the Requirements table in a many-to-many
relationship, with the Certificates table serving as the junction table. But
since the Requirements table will actually do double duty as providing both
insurance requirement values and certificate offering values, I will refer to
it as the Insurance Parameters table instead.
TblAgreements
AgreementID
<Agreement fields>
TblInsParameters
InsParameterID
InsParameterDescrip
<Other fields, if any>
TblCertificates
CertificateID
AgreementID
InsRequirementID (same as InsParameterID)
InsOfferingID (same as InsParameterID)
So if the InsOfferingID and the InsRequirementID match, then the Certificate
is valid for that one particular parameter.
Now, it is not clear from my reference books whether a junction table must
use a composite primary key consisting of values that match the primary keys
from the two joined tables, or, whether you are free to use a separate
primary key. I hope the latter is the case, because I've grown prejudiced
against composite keys.
I wasn't sure where in the thread to put this posting, so I put it here in
hopes you all find it. Thanks for your suggestions, and I would appreciate
any further suggestions, corrections or advice you may have to offer on this
plan of attack. I'm sure as I get on with this there will be plenty of
unforeseen obstacles to negotiate.
--OBP