Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Brain Freeze? or is it possible
Message
 
 
À
12/01/2016 17:39:00
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01629732
Message ID:
01629737
Vues:
33
>Maybe this is the question I should have asked:
>
>Table company has a comp_code column - a primary key and a comp_group column
>comp_group can be blank or it can contain the key to itself or another row in the table.
>
>How can I find all the members of the group that @comp_code belongs to?

This is still not very clear. Can you post a sample input and desired output? Are you looking for recursive cte?
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform