Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Self referencing tables
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00811710
Message ID:
00812166
Vues:
13
To Cathi and Kevin,

Thank you guys for this valuable information. As for my case, your methods could use a little tweaking, since in the case of self referencing tables, things can get really missy especially when there is an indefinite level of heirarchy.

Inspired by your posts, I think I finally found a solution:

1- Get all updates (in the order specified by Cathi) of top parents (parent code is null)
2- Perform the appropriate update on the first row.
3- Get updates of all its children (again in the same order mentioned above).
4- Recurse through step 2.
5- Move to the next record and recurse through step 2.

and I think thats it!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform