Sqlserver
 sql >> Base de données >  >> RDS >> Sqlserver

Comment effectuer un LEFT JOIN dans SQL Server entre deux instructions SELECT ?

SELECT * FROM 
(SELECT [UserID] FROM [User]) a
LEFT JOIN (SELECT [TailUser], [Weight] FROM [Edge] WHERE [HeadUser] = 5043) b
ON a.UserId = b.TailUser