Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tree structures?
Message
De
17/12/1998 12:45:46
 
 
À
17/12/1998 12:43:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00168160
Message ID:
00168571
Vues:
25
>>Im wondering how one would implement a set of records that are sorted tree like, as oposed to linearly. ie create a family tree where each node can have a marrage link, more than one children link, and a parent link. Not a simple tree, either: there would actualy have to be more that one marrage link, and maried into the family people would only have one link.
>>
>>Any idea how one would do this, indeed, is it possible?
>
>If you are into genealogical work, the word "tree" (as used in Computer Science) does not apply. IMO, the best (relational) way to do it would be to have the following tables:
PEOPLE(idPerson, OtherPersonData, idFather, idMother)
>MARRIAGES(idMalePerson, idFemalePerson, OtherMarriageData)
On the other hand, its graphical representation is "left as an exercise"...

On second thought, you will need some extra information; as a couple may marry, divorce, and marry again, the MARRIAGES table needs an extra key field.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform