retrieving root id in hierarchial data structure.
udnappMay 21 2013 — edited May 21 2013HI,
I have data arranged in tree having parent child relationship as below .But i need to retrieve the root in the tree.Please let me know how can i achieve this.
parent child
A B
B C
C D
D E
M N
N O
In the above case i need to get root element of tree through query i.e in my case it will be A and N.How can we achieve this