What is the difference between "INNER JOIN" and "OUTER JOIN"?

Forums SQLWhat is the difference between "INNER JOIN" and "OUTER JOIN"?
Staff asked 7 months ago

Answers (2)

Add Answer
Umang Ramani Marked As Accepted
Staff answered 7 months ago

The primary distinction between an INNER JOIN and an OUTER JOIN is that the inner join retains just the information from both tables that is connected to each other (in the resulting table). An Outer Join, on the other hand, will maintain information in the resultant table that is unrelated to the original table.

Staff answered 1 week ago
Inner Join

It is a specific kind of SQL join procedure. When two or more tables with at least one characteristic in common are merged, the procedure known as an inner join is performed. It won’t return anything if the tables don’t share any attributes.

Outer Join 

It is a specific kind of SQL join procedure. Even if the join condition fails, an outer join operation will nevertheless return combined tuples from the given table.

In SQL, there are three different forms of outer joins:

  1. Left Outer Join
  2. Right Outer Join
  3. Full Outer Join

 

Subscribe

Select Categories