hiya,
Ok, I think I've made a bit of progress.Thanks.
I've created "motherId" and "fatherId" as nullable FK's.
In the designer, I've create the typedList "tListFamilyTree"
In the "Entities selected for this tyedList" section,
the tblPerson is listed 3 times.Is this correct?
I believe it should be listed:
1) for the current person
2) for the tblPerson.personId - MOTHERAlias.personId (m:1)
3) for the tblPerson.personId - FATHERAlias.personId (m:1)
(Let's forget about making the relationship any deeper for moment,If I can get the father mother hierarchy working, then that'll be a good start)
In the "selected used relation" section:
tblPerson - MOTHERAlias (m:1)
tblPerson.motherId (m:1) MOTHERAlias.personId
In the "selected used relation" section:
select alternative FATHERAlias.motherId - tblPerson.personId (m:1)
FATHER - tblPerson (m:1)
FATHERAlias.motherId (m:1) - tblPerson.personId
I'm hoping that the above is correct.
Goose, when you say...
and n (depending the number of level you wanna reach in each call) self (left) joins
..Do you mean that I shouls use "left" as a join hint?
many thanks,
yogi