Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL server select
Message
 
 
To
18/02/2002 23:00:03
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00621741
Message ID:
00621743
Views:
16
This message has been marked as the solution to the initial question of the thread.
See 'Expanding Hierarchies' in BOL for stored procedure code.

>Hi All,
>
>What I am trying to do is select a bunch of records from a table that are linked to other records within that table.
>
>ie
>
>with a set of data like :
>
>RecordID    ParentID
>1           0
>2           1
>3           0
>4           2
>5           3
>
>
>Getting all the records for RecordID = 1 would bring through :
>
>RecordID    ParentID
>1           0
>2           1
>4           2
>
>
>What would be the best way to do this in SQL Server 7 (If its possible)?
>
>Thanks,
>
>Michael Henstock
>AWS
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform