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

Home -> Community -> Mailing Lists -> Oracle-L -> Primary keys, Surrogate keys and SSN

Primary keys, Surrogate keys and SSN

From: Jared Still <jkstill_at_cybcon.com>
Date: Tue, 12 Jun 2001 12:17:18 -0700
Message-ID: <F001.003263D8.20010612121934@fatcity.com>

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: jkstill_at_cybcon.com

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: ListGuru_at_fatcity.com (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).
Received on Tue Jun 12 2001 - 14:17:18 CDT

Original text of this message

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