Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hierarchical SQL Select
Message
De
04/09/2009 06:57:12
 
 
À
03/09/2009 16:57:29
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01422513
Message ID:
01422615
Vues:
86
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform