LEFT JOIN vs. LEFT OUTER JOIN in SQL Server

后端 未结 12 1676
失恋的感觉
失恋的感觉 2020-11-21 13:25

What is the difference between LEFT JOIN and LEFT OUTER JOIN?

12条回答
  •  死守一世寂寞
    2020-11-21 13:56

    To answer your question

    In Sql Server joins syntax OUTER is optional

    It is mentioned in msdn article : https://msdn.microsoft.com/en-us/library/ms177634(v=sql.130).aspx

    So following list shows join equivalent syntaxes with and without OUTER

    LEFT OUTER JOIN => LEFT JOIN
    RIGHT OUTER JOIN => RIGHT JOIN
    FULL OUTER JOIN => FULL JOIN
    

    Other equivalent syntaxes

    INNER JOIN => JOIN
    CROSS JOIN => ,
    

    Strongly Recommend Dotnet Mob Artice : Joins in Sql Server

提交回复
热议问题