sql >> Base de Datos >  >> RDS >> Sqlserver

¿Cómo realizar un LEFT JOIN en SQL Server entre dos declaraciones SELECT?

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