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

Home -> Community -> Usenet -> c.d.o.server -> Re: Surrogate Key vs Production Key

Re: Surrogate Key vs Production Key

From: Tony <andrewst_at_onetel.com>
Date: 13 Oct 2004 07:51:09 -0700
Message-ID: <ed8a00fa.0410130651.3b01490d@posting.google.com>


Cris Carampa <cris119_at_operamail.com> wrote in message news:<ckirpr$h64$1_at_lacerta.tiscalinet.it>...
> Mark C. Stock wrote:
>
> > but when establishing the data model, introducing a surrogate key column to
> > replace a natural key column structure seriously weakens the data model and
> > often hides (or impedes discovery of) very important facts about the
> > business
>
> Good point. But what happens if the natural key is made of more than one
> column? Do you still use it (and have all the child tables inherit it -
> this surely enforces the business rules but wastes hd space) or do you
> define a surrogate key instead?

Didn't the example in that post already answer that question? :-

department_vehicle

- dept_id -- pk, fk to department
- veh_id -- pk, fk to vehicle
- ...
Received on Wed Oct 13 2004 - 09:51:09 CDT

Original text of this message

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