Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Table relating to many other tables
Message
De
05/08/2002 10:07:05
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
05/08/2002 10:00:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00686134
Message ID:
00686135
Vues:
34
>Hi
>
>If you had a table that was related to say, 6 tables, would it be better to have 6 individual foreign key fields, or would it be better to have 1 foreign key field and then a "type" to identify where it came from.
>
>I prefer the latter, but what about everyone else?
>
>Thanks
>Kev

I see two difficulties with the approach you propose: 1) What if the table is related to two or more other tables at the same time? 2) It is quite messy to define relations.

I suggest you give a more specific example of what you want to achieve. What sort of information do the 6 "other" tables contain?

HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform