Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can we differ LEFT OUTER JOIN vs Left Join [duplicate]

What is the difference between Left Join and Left Outer Join?

like image 650
OM The Eternity Avatar asked May 11 '10 09:05

OM The Eternity


People also ask

Is there a difference between left outer join and left join?

There really is no difference between a LEFT JOIN and a LEFT OUTER JOIN. Both versions of the syntax will produce the exact same result in PL/SQL. Some people do recommend including outer in a LEFT JOIN clause so it's clear that you're creating an outer join, but that's entirely optional.

Can left outer join causes duplicates?

Again, if we perform a left outer join where date = date, each row from Table 5 will join on to every matching row from Table 4. However, in this case, the join will result in 4 rows of duplicate dates in the joined DataSet (see Table 6).

What is the difference between left outer join and right outer join?

Left Outer Join: Returns all the rows from the LEFT table and matching records between both the tables. Right Outer Join: Returns all the rows from the RIGHT table and matching records between both the tables.

What is the difference between left join?

LEFT JOIN: returns all rows from the left table, even if there are no matches in the right table. RIGHT JOIN: returns all rows from the right table, even if there are no matches in the left table. FULL JOIN: combines the results of both left and right outer joins.


Video Answer


2 Answers

They are the same thing in MySQL. A LEFT JOIN is a synonym or shorthand for LEFT OUTER JOIN.

like image 183
Daniel Vassallo Avatar answered Sep 29 '22 09:09

Daniel Vassallo


There is none. The keyword OUTER is optional. They mean the same.

like image 34
Mark Byers Avatar answered Sep 29 '22 09:09

Mark Byers