Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Primary Keys Document
Message
De
04/08/2001 22:18:13
Walter Meester
HoogkarspelPays-Bas
 
 
À
04/08/2001 20:10:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00539860
Message ID:
00539874
Vues:
13
Hilmar,

I really appriciate your attempt to write an article of this subject. A few comments.

As I have mentioned before, one advantage of natural keys over surrogate keys is that natural keys make a table more readable because they have a business meaning. IMO, this is important for:

1. End - users, doing ad-hoc reports.
2. Debugging your system when something goes wrong.
3. For other developers: Readability: Not only programming code should be readable to make it easy to read for other developers. It also applies to your data !

Second, I really miss the argument that for data retrieving (whether its for reports, views or other purposes) generally more joins are neccesary and this might seriously burden performance or will face the 10 join limit in SQL commands.

Third. I don't see mentioned that for tables that not have childs and/or may have a composite key, a surrogate key is purely overhead and only takes up space (See my postcode table example).


Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform