Вопрос

If Left Outer Join and Left join do the same exact thing. Are there any advantages to use one over the other? What scenarios might you choose to say Left Join over Left Outer Join or vice versa?

Это было полезно?

Решение

The keywords inner and outer are optional (like many others). The join type is implied:

  • unqualified = inner
  • left = outer
  • right = outer
  • full or cross = outer

I personally never use them as they are code clutter.

Другие советы

They are exactly the same. The outer join is optional.

HOWEVER, If you do not specify an Outer join type: Left, Right, or Full, then it will be an INNER join.

In the context of Left/Right they are equivalent to an OUTER join and therefore OUTER will be defaulted, and can, semantically be added.

Left Join == Left outer join

Like some people have said, it's very nice for the readability.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top