Hi All,
Here is the description of the problem :
Child Parent
16 9
17 9
18 16
19 17
Now the deal is I'll get on parent key from which I need to pull out all its children and obviously I do not know many children one parent can have. Can somebody tell me a best way to get all the children of a given parent id. Also suggest me if it is doable using a dynamic query.
From the above sample it goes like this :
9 -> 16 -> 18
17 -> 19 ...
I need the output as
9
16
17
18
19
...
Thanks
Draj
Here is the description of the problem :
Child Parent
16 9
17 9
18 16
19 17
Now the deal is I'll get on parent key from which I need to pull out all its children and obviously I do not know many children one parent can have. Can somebody tell me a best way to get all the children of a given parent id. Also suggest me if it is doable using a dynamic query.
From the above sample it goes like this :
9 -> 16 -> 18
17 -> 19 ...
I need the output as
9
16
17
18
19
...
Thanks
Draj