Difference between FULL JOIN & INNER JOIN

前端 未结 8 1079
我在风中等你
我在风中等你 2020-11-30 17:33

What is the difference between a FULL JOIN and an INNER JOIN?

When I do a FULL JOIN, I get 832 records and with an INNER

8条回答
  •  清歌不尽
    2020-11-30 17:56

    The difference is in the behaviour of unmatched rows.

    For example, if table A has a row which doesn't have a correspondence in table B in the field onto which the join is defined, an inner join would omit the row altogether, while a full join would include the row, but with NULL values for the fields of table B. Viceversa for unmatched rows of table B.

提交回复
热议问题