Re: Question on Primary Keys

From: ERMREY <schnerb_at_hotmail.com>
Date: Wed, 25 Oct 2000 13:47:29 -0400
Message-ID: <sve769qr1g7gab_at_corp.supernews.com>


<rs> wrote in message news:sunp5nebkfmn2f_at_news.supernews.com...
>
> I know that (OrderNum, LineNum) should semantically be the PK.
>
> What if the following were done :
>
> set OrderLineID as the PK for the ORDERLINE table, and have OrderNum
 as
> a FK.
>
> By doing that, am I helping myself in terms of efficiency with indexing in
> any way or
> is there no real benefit from doing that?
>
> If I wanted to go forward with the approach I described, how would I set
 up
> a unique
> sequence in Oracle in order to accomplish this ?
>
> Raju
>
If you index on OrderNum in the ORDERLINE table, yes, I believe there is a benefit.

-ERMREY Received on Wed Oct 25 2000 - 19:47:29 CEST

Original text of this message