Subject | Re: General question about Master/Detail |
---|---|
Author | Ryan Nilsson-Harding |
Post date | 2002-10-24T03:12:47Z |
Ahhh, excellent.
Thanks for the answer Helen, I just had a feeling I may have been
over doing something. This makes sense.
Quite obvious I've come from a Paradox background, hey?? :)
Rgds,
-Ryan
Thanks for the answer Helen, I just had a feeling I may have been
over doing something. This makes sense.
Quite obvious I've come from a Paradox background, hey?? :)
Rgds,
-Ryan
> Hey, this isn't Paradox, which relies on hierarchical keys! usethe
> generated unique column keyF as the primary key of the detailtable and let
> the foreign key to the master do its work uninhibited. The PK ofthe
> detail table is irrelevant to the FK relationship and there are101 reasons
> (erm...a slight exaggeration) not to have the PK and the FKcolumns
> stepping on each other.let the
>
> Also, you can have multiple FKs in the detail if you want to, and
> same detail table be detail to different masters. You can'tachieve this
> with Paradox-style keys.
>
> What you have (minus the composite primary key) is ideal.
>
> heLen