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 |
|
jrdatla
Yak Posting Veteran
51 Posts |
Posted - 2001-01-15 : 18:49:01
|
| I Have the following table.GID PGID1 <Null>2 13 14 25 26 37 48 49 510 311 712 713 8The record with GID = 1 is the parent Group and it has two sub groups 2, 3. The Subgroup 2 has 4,5 as its sub groups and Subgroup 3 has 6, 10 as its subgroup and the list continues so on.I would like to have a query which shows the Sub Groups, subgroups within the subgroups for a asked group/subgroup.Example: A query which returns the subgroups for GID = 2Result: 4,5,7,8,9,11,12, 13.Gid GubGroups2 4, 54 7, 85 97 11, 128 13So the query should return 4,5,7,8,9,11,12,13.Thank youJr. Datla |
|
|
|
|
|
|
|