Lightwave
Ad astra
- Local time
- Today, 19:14
- Joined
- Sep 27, 2004
- Messages
- 1,537
Dear All
I have a single table of a list of persons that is referenced to itself for the father and mother field.
So lets say its called t001 and has a primary key of PKID structure is similar to the following where pkidt001mother and pkidt002father is referenced to itself.
pkid
firstname
surname
pkidt001mother
pkidt001father
Anyone got any pointers on how to write the SQL that could pick up collections of related individuals...?
Just playing about with this structure but at the moment I really like it.
I have a single table of a list of persons that is referenced to itself for the father and mother field.
So lets say its called t001 and has a primary key of PKID structure is similar to the following where pkidt001mother and pkidt002father is referenced to itself.
pkid
firstname
surname
pkidt001mother
pkidt001father
Anyone got any pointers on how to write the SQL that could pick up collections of related individuals...?
Just playing about with this structure but at the moment I really like it.