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: Design approaches about primary key

Re: Design approaches about primary key

From: Daniel Morgan <damorgan_at_x.washington.edu>
Date: Fri, 28 Nov 2003 14:53:53 -0800
Message-ID: <1070060065.719360@yasure>


Van Messner wrote:

>
> A matter of design and method I suppose. You don't like public synonyms, I
> don't like to change primary keys.

I don't like either. A primary key that needs to be changed is an admission of a bad design.

>>
>>I'd disagree on SSN but it is not guaranteed to be unique and of zero
>>value to an international organization. In the case you describe the
>>only valid solution is a surrogate "PERSON_ID" value.

>
>
> That's exactly the point. As I said "sometimes you just can't find a
> meaningful key" .

And that's exactly the point. The decision is based on the data, the application, and the context. Not following some rule from a web site or some advise written in a book. Good design means thinking things through ... not just doing what you did last time.

We get paid to work ... not to copy.

-- 
Daniel Morgan
http://www.outreach.washington.edu/ext/certificates/oad/oad_crs.asp
http://www.outreach.washington.edu/ext/certificates/aoa/aoa_crs.asp
damorgan_at_x.washington.edu
(replace 'x' with a 'u' to reply)
Received on Fri Nov 28 2003 - 16:53:53 CST

Original text of this message

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