What is the difference between an inner join and outer join? What's the precise meaning of these two kinds of joins?
INNER JOIN
returns rows that exist in both tables
OUTER JOIN
returns all rows that exist in either table
Check out Jeff Atwood's excellent:
A Visual Explanation of SQL Joins
INNER JOIN
LEFT OUTER JOIN
Marc
You use INNER JOIN to return all rows from both tables where there is a match. ie. in the resulting table all the rows and columns will have values.
In OUTER JOIN the resulting table may have empty columns. Outer join may be either LEFT or RIGHT
LEFT OUTER JOIN returns all the rows from the first table, even if there are no matches in the second table.
RIGHT OUTER JOIN returns all the rows from the second table, even if there are no matches in the first table.
Google to the rescue!
http://database.ittoolbox.com/documents/inner-and-outer-join-sql-statements-18442
Inner join only returns a joined row if the record appears in both table. Outer join depending on direction will show all records from one table, joined to the data from them joined table where a corresponding row exists
Using mathematical Set,
Inner Join is A ^ B;
Outer Join is A - B.
So it is (+) is your A side in the query.