我有两张表列出了一个家庭成员及其关系:
MEMBERS
EMP_ID Name
1 Great Grand Father
2 Grand Father
3 Father
4 Child1
5 Child2
关系
MEM_ID PAR_MEM_ID
5 3
4 3
3 2
2 1
现在我想要结果如下:
G.G. Father Grand Father Father Child1
G.G. Father Grand Father Father Child2