Sql query to get the GrandFather name by doing a self join
Posted
by mahesh
on Stack Overflow
See other posts from Stack Overflow
or by mahesh
Published on 2010-04-28T05:59:05Z
Indexed on
2010/04/28
6:03 UTC
Read the original article
Hit count: 342
Hello all , Can any one please give me the query to get the child name and his grand fathers name For eg - if i have a table Relationships in the i have childid and fatherid columns so how will i get the grandfather,
i can easily get the father name by using a join but for grandfather i need to do joins 2 times so can any one help me with this
D.Mahesh
© Stack Overflow or respective owner