Calculate Family Relationship from Genealogical Data

后端 未结 6 2179
萌比男神i
萌比男神i 2021-01-30 11:36

I would like to be able to calculate the family relationship between two individuals in a family tree, given the following data schema (simplified from my actual data schema, on

6条回答
  •  忘了有多久
    2021-01-30 12:39

    This might help you, it's a lot of theory and implementation of SQL queries to generate and query tree structures

    http://www.artfulsoftware.com/mysqlbook/sampler/mysqled1ch20.html

    In particular, look at the adjacency list model which uses a family tree as example.

提交回复
热议问题