Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hierarchical SQL Select
Message
De
04/09/2009 08:20:44
John Baird
Coatesville, Pennsylvanie, États-Unis
 
 
À
03/09/2009 21:26:15
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01422513
Message ID:
01422622
Vues:
55
>Can you please be more detailed on the relationship within the table. This type of ordering is usually easily accomplished with a simple group and partition by but the details are not jumping out at us. It almost seems like there is a missing key for the relationship unless your results are just varying all over.

Hi Ted,

this is a self-referencing hierarchy. Each child points to its parent. If the key is null it is the top level parent. So in the example, "Add Category Library" is the top level parent. The "add category", "add category language", etc. are 2nd level parents as are the corresponding "delete...". The edits are children of the 2nd level items and so on....
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform