Re: Choosing a surrogate key vs. a composite key - "holy war" issue or clear best practice?



On Jun 28, 9:44 am, hpuxrac <johnbhur...@xxxxxxxxxxxxx> wrote:

Yes this is a religious topic like flavors of unix and linux.

Mostly it is known as surrogate versus natural keys your terminology
seems to imply something else.

Thanks for correcting me. The same issue could be stated as synthetic
vs. natural keys. But your terminology is better paired than mine.
There are simple keys and composite keys (also known as complex keys
and concatenated keys). I tend to think of simple keys as surrogate/
synthetic, but a Social Security Number is both a simple key and a
natural key.

It's been thrown around and debated and flamed on all/most of the
major database forums numerous times. You can find several long ones
here on cdos if you search the archive ( accessible thru google groups
interface and possibly other ones ).

Thanks HP, will do. I'm trying to learn. Not push a particular agenda
and certainly not in a rude manner.

Dana
.



Relevant Pages

  • Re: Data Primary key vs. Artificial (Autonumber) primary key
    ... "natural" keys, I use unique indexes. ... the message about having table constraints on the candidate keys ... but I would wager than most users in the 'Autonumber PK' camp put ... worse) with multi-column natural keys (I have no objection on ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Fixing up structure with primary, natural, surrogate, etc.
    ... So, I re-did most of my tables, creating natural keys, setting unique ... If you already have the unique index, ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Access 2010 beta - Publish to Sharepoint
    ... talking only about junction tables and the seriousness of the ... The ability of having compound keys is also good. ... Multicolumn indices are indeed convenient when natural keys are ...
    (comp.databases.ms-access)
  • Re: "Smart" Product Codes
    ... Pass four parameters (4 keys) and create the ... using the natural keys would make things less complex. ... > composite of those four natural keys represents the natural key for the ... > calculated column would make that a lot less painful. ...
    (microsoft.public.sqlserver.programming)
  • Re: Why use a composite PK ever?
    ... such as here in Denmark where each citizen ... operator simply enters incorrect birthdate ... So after such cases I'm very sceptical about natural keys as primary ...
    (comp.databases)