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

Home -> Community -> Usenet -> comp.databases.theory -> Re: Do I need a PK on a join table?

Re: Do I need a PK on a join table?

From: Knut Stolze <stolze_at_de.ibm.com>
Date: Wed, 15 Feb 2006 08:21:13 +0100
Message-ID: <dsukp9$bbs$1@lc03.rz.uni-jena.de>


Bob Badour wrote:

> SQL and DB2 confound the issue by mixing physical structures (indexes)
> with purely logical integrity constraints (uniqueness/keys), by allowing
> the abominable NULL,

I don't know where there is anything "mixed" and how NULL would fit into this statement. Could you possibly explain how you mean that?

> and possibly by limiting the declarable foreign key
> constraints to reference a single primary key per table.

This is not correct. In SQL, a FK can reference any unique constraint (incl. the primary key, of course).

> If you have a strong argument for wanting no index, declare a uniqueness
> constraint.

Which will be enforced by a unique index...

-- 
Knut Stolze
DB2 Information Integration Development
IBM Germany
Received on Wed Feb 15 2006 - 01:21:13 CST

Original text of this message

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