Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Natural Keys
Message
De
02/03/2015 15:11:38
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Titre:
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01616073
Message ID:
01616107
Vues:
36
>>Here at my job we have a database modeler in our group. He is insistent that all tables use 'Natural Keys' and not surrogate keys. I am not trying to start a battle or anything, but is this really even still a debate? It does not matter how much logical reason I provide him, he is propagating his plan across the company and it does not seem to matter what the impact will be. This is a global company in 140 countries with data centers all over the world.
>>
>>My only questions is: Has something changed and I missed it? We are talking about values that users see and will want to change being used as primary keys on the tables.
>
>As Janice Booth says, "Natural Keys aren't". I don't have a problem with setting up natural keys as candidates, but in every case where some has said "this value will always be unique/never change" they've lied <g>.

In 1991 I was writing the invoicing module for a customer. Due to the nature of the business, they had at least three different kinds of invoices, calculated differently. One of the first two was weird, having the rebate applied after taxes - which meant they were losing the tax on rebate - but hey, customer is always right. For the third kind, I had to ask how does the rebate apply - before or after taxes. The guy said "don't worry, this kind of invoice never had nor will ever have a rebate on it". I duly quoted him in a dated comment in the code.

Come 1993, he said something about fixing the third type of invoice to introduce rebate. I didn't say a thing, just pulled up my code and pointed my finger to the comment.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform