Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to deal with n-tuples when n is variable?
Message
De
10/09/1999 21:51:51
 
 
À
10/09/1999 21:46:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00263226
Message ID:
00263584
Vues:
23
>>name(PK),mother,father,oldestchild,nextoldersibling,nextyoungersibling,sex,[personal info]
>>
>
>You got it. YOu should only have to trace nuclear family realtionships, because all others can be derived from these. ie, an uncle is a father's brother. So to handle all cases, you would only really have to have 5 relationships: Mother, Father, Child, Sibling, Spouse.
>

Upon thinking about this more, you shouldn't even need a Child or Sibling relationship, because this data can be derived from the Mother and Father fields. For example, to find all of my bothers and sisters, and half brotherd and sisters, I simply find all of the people who share on or both of my parents.

To find all of my children, I only find all the records who consider me their father.

That's down to 3 relational fields in the people table.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform