📜  ms sql left join select - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:53.484000             🧑  作者: Mango

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