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 |
sanjnep
Posting Yak Master
191 Posts |
Posted - 2007-07-01 : 09:30:51
|
I want to find all the child of a node in a tree . A child can have multiple parent i.e 2 can be place under multiple parent . The folling is the data:ParentID ChildID-------------------------10 88 68 77 27 55 15 26 2child of parent if input 108762251(2) can be neglectedinput 7251(2) can be neglectedinput 8725(2) can be neglectedPlz help we to write the sql statementsThanks |
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2007-07-01 : 12:12:26
|
Have a look at CTEs - there's an example of tranversing a hierarchy in bol.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
sanjnep
Posting Yak Master
191 Posts |
Posted - 2007-07-01 : 12:39:50
|
nr,what is CTEs? So I may look over there.Thanksss |
 |
|
|
|
|