Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hierarchical SQL Select
Message
From
04/09/2009 06:57:12
 
 
To
03/09/2009 16:57:29
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01422513
Message ID:
01422615
Views:
85
Given the following sql data, how do I select this hierarchically to produce a list with the parents/children in the proper order (children ordered by rightsorder)?

Looks like you are using a reflexive table todefine the hierarchy, right? You would probabaly be better off to separate the data from the structure of the hierarchy.

You can download the white paper and code samples from the tools and utilities page of my web site from my conference presentation entitled "Modeling Hierarchies". The sample are all VFP, but it gives you the concepts.
Previous
Reply
Map
View

Click here to load this message in the networking platform