1 | +----------------+-------------------+ | | | 2 7 9 | | | +--+--+ | +--+--+ | | | | | 3 4 8 10 12 | | +-+-+ | | | | 5 6 11
Note : i could not post image so try to consider the numbers above as tree structure with 1 as the root node.
How can i use hierarchical query to get the path between two nodes
for eg : path between 11 and 4
i.e. output should be
11-10
10-9
9-1
1-2
2-4