| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: Primary vs. Surrogate! What a nightmare debate.
--CELKO-- wrote:
>>> Regardless of any theory, I use it solely to code UPDATE and
Who am I to say such great minds are capable of error? I just know how to make a system that lets everyone, that's users and me, avoid working Christmas.
>
> What exactly do you name such a routine?
> "Update_BritneySpears_or_Fishtanks()" only begins to touch the
> possible uses of nightmares that mix data and metadata in the same
> code.
If I told you my naming conventions you'd have a cardiac.
>
>>> Absolutely never use the meaningless integer as a foreign key. <<
hee hee hee, life needs a little humor.
>
>>> 2. Some tables are reference tables, such as the list of customers,
Why can't they do that? Methinks you are making many many assumptions.
>
>>> Never pack a key, as in never have the key parsable so that it
I prefer to limit my design decisions to those items which I control. I do not control the creation of UPC codes. My designs treat this information as received from a third party.
>
>>> As for natural keys, by the time you have a working systems it
You cannot prevent the addition of incorrect information, period. If you define a natural key on first name + last Name, somebody will enter a misspelled name and John Smith is in there twice, as John Smith, and John SSmith. For this reason natural keys as primary keys (and by extension as foreign keys) can really bite you in the rear-end, because they can lead you to a false sense of security.
Cheers!
-- Kenneth Downs Use first initial plus last name at last name plus literal "fam.net" to email meReceived on Sun Oct 17 2004 - 19:49:06 CDT
![]() |
![]() |