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 |
|
KDesai
Starting Member
4 Posts |
Posted - 2010-05-25 : 07:16:32
|
| Hi, I have a parent-child relationship as under:1 Node1 02 Child1_1 13 Child2_1 14 Node2 05 Child1_2 46 Child2_2 47 Child3_2 48 Node3 09 Child1_3 8.Now I need to pull down the data from the database such that I can get the root node and the first three child columns in the output. In the above case the output should be like as under:1 Node1 Child1_1 Child2_1 Null2 Node2 Child1_2 Child2_2 Child3_23 Node3 Child1_3 Null Nullcan anyone please help me in getting the proper SQL. Regards,Kunal |
|
|
|
|
|