Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is this possible to do with a SELECT statement?
Message
De
31/10/2005 11:38:54
Jim Winter
Jim Winter Consulting
Hinesburg, Vermont, États-Unis
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01063558
Message ID:
01063649
Vues:
8
>Jim,
>Logically I don't think your suggestion will work. I didn't test your suggestion but I think Sergey's solution is the only proposed solution that will work.
>
>Einar
>>
>>Not tested, but I think this should work.
>>
>>SELECT Item.ItemID, ;
>>       Creator.UserName , ;
>>       Assignee.UserName ;
>>  FROM Item JOIN User Creator ;
>>   ON Item.UserID = Creator.UserID ;
>>  JOIN User Assignee ;
>>   ON Item.UserID = Assignee.UserID
>>
>>
>>Regards,

You're right, of course! The Item half of the JOIN statements should have referred to the Creator and Assignee fields.

Regards,
Jim
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform