Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Modeling help (recursive lookup)
Message
De
21/02/2007 17:50:49
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
21/02/2007 15:57:38
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Versions des environnements
SQL Server:
SQL Server 2000
Divers
Thread ID:
01197755
Message ID:
01197810
Vues:
21
>I am trying to work out a situation in my head...
>
>I have 2 tables - A User table with UserID and UserName, and a UserSupervisor table with UserSupervisorID, UserID, SupervisorID.
>
>A user can have multiple supervisors, and a supervisor can have a supervisor. What I want to do is for a particular user, get all users above them. I know I am going to have to do a recursive lookup somehow. Is this something I need to do in a SPROC?

Google recursive, or hierarchical queries.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform