Surrogate keys

From: David Cressey <david_at_dcressey.com>
Date: Sun, 25 Mar 2001 19:17:04 GMT
Message-ID: <Qurv6.36941$2X4.150778_at_petpeeve.ziplink.net>


If "numeric pseudo-keys" and "surrogate keys" are at least overlapping concepts, then
the following deserves mention:

Surrogate keys are used in cases where key discipline is beyond the control of the enterprise that owns the database. If you can't guarantee that every new entry will have one and only one key value, and that every key value will be used at most once, better go with a surrogate key.

An example: every now and then the Social Security Administration screws up, and assigns the same Social Security number to more than one person. Hopefully, that doesn't happen as often as it used to, and it was always a very rare occurrence. But do you want your system to fail when that happens?

--
Regards,
    David Cressey
    www.dcressey.com
Received on Sun Mar 25 2001 - 21:17:04 CEST

Original text of this message