Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Non-unique index and normalization

Re: Non-unique index and normalization

From: Phil Singer <psinger1_at_chartermi.net>
Date: Thu, 02 May 2002 19:08:10 -0400
Message-ID: <3CD1C6DA.577575F@chartermi.net>


John Hunter wrote:
>
> Is there a normalization rule that indicates that there must be an unique PK
> key on every table in the database? I am having a debate with a co-worker
> and one of us says that there has to be one and the other disagrees. Who is
> right?
>
> Thanks,
> -John

My take is that both of you have some element of 'The Truth' (with you being closer than your co-worker).

  1. Unique PK key is redundant (a PK identifies rows uniquely).
  2. A table can have more than one unique key (that is also somewhat redundant).
  3. I will argue that it should be possible to define a PK for any useful table (the key may be a composite across all columns of the table).
  4. But not all tables need (or should) have this key declared as part of their table definition. There are real-world examples where the table structure has been so denormalized and twisted that the necessary composite index would be almost as large as the table itself, and rarely used. Instead, smaller indexes which identify small chunks of the table will be used.
-- 
Phil Singer                |    psinger1_at_chartermi.net
Oracle DBA

Go Wings!!!!!!!
Received on Thu May 02 2002 - 18:08:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US