Hi,
I would like to write a query for following structure table...
Id Text Parentid
1xyz NULL
2pqr NULL
3abc 1
4mno 1
5xxy 3
6oop 3
7umn 2
I want my result like..................
Parentname child Rank
xyz abc 1
abc xyz 2
Please help me to write for query...
Regards,
Sunil..