Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
amodi
Yak Posting Veteran
83 Posts |
Posted - 2009-09-14 : 07:58:14
|
| Hello Friends,I have a table that maintains heirarchy. When input is passed( can be one or more parentId in a table), all of its childId(and child's childIds...) should be the outputchildId-------parentId46------------185-------------466-------------57-------------68-------------69-------------610------------611------------612------------613------------614------------6For example: when the input is 18.The output should be:46567891011121314 Thanks a million. |
|
|
khtan
In (Som, Ni, Yak)
17689 Posts |
|
|
|
|
|