|
-
Jan 20th, 2009, 09:16 PM
#1
Thread Starter
Fanatic Member
Getting all childs recursively in query [RESOLVED]
i have this 'manager like' table : ManagerID + Name + ParentID which it can have many descendants inside ex:
1 + A + 0
2 + B + 1
3 + C + 2
4 + D + 2
5 + E + 1
6 + F + 0
7 + G + 6
...
so when i want to get all childs for parent 1 it will return
B - C - D then
E without any childs
any insight?
PS: i'm using SQL SERVER 2005
thanks,
Last edited by erickwidya; Jan 20th, 2009 at 11:22 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|