All,
I have this below resultset derived from one table and in one query. It can have any levels of parent-child, parent-subparent-child relation .I cannot make multiple calls to the database.
ItemID Item ParentItemID
1 Colors 0
2 Animals 0
3 Dog 2
4 Spaniel 3
5 Blue 1
6 People 0
7 Steve 6
8 Red 1
9 Cat 2
10 Bob 6
11 Doberman 3
12 Green 8
Can anyone advise me how I can get the child to be displayed under the parent as this with formatting:
ItemID Item ParentItemID
1 Colors 0
5 Blue 1
8 Red 1
12 Green 8
2 Animals 0
3 Dog 2
4 Spaniel 3
11 Doberman 3
9 Cat 2
6 People 0
7 Steve 6
10 Bob 6
Thanks
I have this below resultset derived from one table and in one query. It can have any levels of parent-child, parent-subparent-child relation .I cannot make multiple calls to the database.
ItemID Item ParentItemID
1 Colors 0
2 Animals 0
3 Dog 2
4 Spaniel 3
5 Blue 1
6 People 0
7 Steve 6
8 Red 1
9 Cat 2
10 Bob 6
11 Doberman 3
12 Green 8
Can anyone advise me how I can get the child to be displayed under the parent as this with formatting:
ItemID Item ParentItemID
1 Colors 0
5 Blue 1
8 Red 1
12 Green 8
2 Animals 0
3 Dog 2
4 Spaniel 3
11 Doberman 3
9 Cat 2
6 People 0
7 Steve 6
10 Bob 6
Thanks