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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2005-11-02 : 08:12:48
|
| Andrew writes "I have a few query questions.. if you have a table with the following definition:TableID ParentID1 NULL2 13 24 35 NULL6 NULL7 58 7if someone requests ID 4 it should return rows:4321(everything below it)so 2 would return1if request was 8875if request was 66not only that but going forward would be ideal as well. Should be achievable by doing the reverse on the parentID column.if request was 234if request was 78oh and in SQL 2000 :) not 2005 :)" |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
rfrancisco
Yak Posting Veteran
95 Posts |
|
|
|
|
|