When is a good situation to use a full outer join?

后端 未结 7 1600
耶瑟儿~
耶瑟儿~ 2020-12-23 02:07

I\'m always discouraged from using one, but is there a circumstance when it\'s the best approach?

7条回答
  •  醉话见心
    2020-12-23 02:38

    I noticed that the wikipedia page provides an example.

    For example, this allows us to see each employee who is in a department and each department that has an employee, but also see each employee who is not part of a department and each department which doesn't have an employee.

    Note that I never encountered the need of a full outer join in practice...

提交回复
热议问题