Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child and parent on same table
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00891025
Message ID:
00891051
Views:
15
Hello Roy,

would that work for you?

SELECT * FROM TEST WHERE PARENT IN (SELECT ID FROM TEST) UNION SELECT A.* FROM TEST A, TEST B WHERE A.ID=B.PARENT
Previous
Reply
Map
View

Click here to load this message in the networking platform