Difference between RIGHT & LEFT JOIN vs RIGHT & LEFT OUTER JOIN in SQL

SqlJoinLeft JoinOuter JoinRight Join

Sql Problem Overview


What is the difference in results between:

  1. RIGHT JOIN and RIGHT OUTER JOIN
  2. LEFT JOIN and LEFT OUTER JOIN ?

Can you please explain it through some examples?

Sql Solutions


Solution 1 - Sql

There is no difference between RIGHT JOIN and RIGHT OUTER JOIN. Both are the same. That means that LEFT JOIN and LEFT OUTER JOIN are the same.

Visual Representation of SQL Joins

Solution 2 - Sql

Nice explanation of SQL Join:

enter image description here

Reference: link

Solution 3 - Sql

Here's a very nice Visual Explanation of joins generally by our very own Jeff Atwood. A right outer join is the same as a right join, and left join and left outer join are also the same.

Solution 4 - Sql

> What is result difference between: > > RIGHT JOIN and RIGHT OUTER JOIN

No difference.

> LEFT JOIN and LEFT OUTER JOIN ?

No difference.

Simply put, the OUTER keyword is optional. You can include it or omit it without affecting the resultset.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionPuruView Question on Stackoverflow
Solution 1 - SqlPranay RanaView Answer on Stackoverflow
Solution 2 - SqlMaheshView Answer on Stackoverflow
Solution 3 - SqlLeonardView Answer on Stackoverflow
Solution 4 - SqlonedaywhenView Answer on Stackoverflow