Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL server select
Message
From
18/02/2002 23:00:03
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
SQL server select
Miscellaneous
Thread ID:
00621741
Message ID:
00621741
Views:
33
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
A fish this fine deserves to be a fish nugget styled chunklet.
- Fry
Next
Reply
Map
View

Click here to load this message in the networking platform