When or why would you use a right outer join instead of left?

后端 未结 11 672
小蘑菇
小蘑菇 2020-11-27 05:47

Wikipedia states:

\"In practice, explicit right outer joins are rarely used, since they can always be replaced with left outer joins and provide no additional functi

11条回答
  •  清歌不尽
    2020-11-27 06:17

    SELECT * FROM table_a
    INNER JOIN table_b ON ....
    RIGHT JOIN table_c ON ....
    

    How else could you quickly/easily inner join the first 2 tables and join with table_c while ensuring all rows in table_c are always selected?

提交回复
热议问题