|
OUTER JOIN
|
|
| · | INNER JOIN: This will only return rows when there is at least one row in both tables that match the join condition.
|
| · | LEFT OUTER JOIN: This will return rows that have data in the left table (left of the JOIN keyword), even if there's no matching rows in the right table.
|
| · | RIGHT OUTER JOIN: This will return rows that have data in the right table (right of the JOIN keyword), even if there's no matching rows in the left table.
|
| · | FULL OUTER JOIN: This will return all rows, as long as there's matching data in one of the tables.
|
| · | In all types of outer joins, if the same values for the linking columns are found in each table, R:BASE joins the two rows.
|
| · | For a left outer join, R:BASE uses each value unique to the left (first) table and completes it with nulls for the columns of the right (second) table when the linking columns do not match.
|
| · | A right outer join uses unique values found in the right (second) table and completes the rows with nulls for columns of the left (first) table when the linking columns do not match.
|
| · | A full outer join first joins the linking values, followed by a left and right outer join.
|