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 - 2001-12-07 : 09:26:06
|
maoz writes "Hi,my Table:ID ParentID IsReal-- -------- -------1 1 12 1 03 2 04 2 15 4 06 1 07 5 0 I want to SELECT all childs in tree from the point i willindicate in where and down.So for ID 1 i'll get2,3,4,5,6,7 all of the child and grandchild and so on ..for ID 4 i'll get5,7And for ID 2 i'llall of them as well because the flag IsReal set to 0and his parent is ID '1' and he owns all of themThank'sMaoz" |
|
|
|
|
|