On Tuesday 12 June 2001 07:11, Koivu, Lisa wrote:
> Well, here's one problem - there is no guarantee that Social Security
> Number will indeed be unique. SS#'s are reassigned, just like phone
> numbers are.
My experience with SSN's in the insurance business is that they make
a terrible key.
> IMHO, surrogate keys are always a good idea. Has anyone got an example of
> when a surrogate key is NOT a good idea?
The only real downfall of surrogate keys is that it may require a developer
to do a join on the FK to the parent table to get the unique key information.
A small tradeoff in my opinion, since surrogate keys reduce the complexity
and column count in joins.
Duhvelopers complain because they have do do *any* joins, but that's
to be expected.
Real developers know the benefits.
If we really want to have a full blown discussion on this, we should
start a new thread.
Oh look, I just did. :)
Jared
--
Please see the official ORACLE-L FAQ: http://www.orafaq.com
--
Author: Jared Still
INET: [EMAIL PROTECTED]
Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
San Diego, California -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from). You may
also send the HELP command for other information (like subscribing).