What is a SQL Left (Outer) Join?

Data System Architecture

About

A Left Outer is a join that shows:

  • All data from the left table
  • and any data that matches the join predicate with the right table.

In some databases, LEFT JOIN is called LEFT OUTER JOIN.

  • Causes the data of the shared records found in the second source to be merged with the records found in the first source
  • Ensures that all records from the first data source are processed
  • May cause some records within the second data source to be ignored or dropped

Example

Example 1

Left Join Result Discard

Example 2

Leftoutertableatableb

Example 3

table1
(inner set)
table2
(outer set)
Column ID Column ID Column ID_2
A A
B B A
D C C
select table1.id "ID_table1", table2.id "ID_table2"
from table1 LEFT OUTER JOIN table2
on  table1.id = table2.id;
ID_table1  ID_table2
---------- ----------
A          A
B          B
D

All the data from the table1 appears even if for the value D, we don't have any match with the table1.

1)





Discover More
Bobj Outer Join Properties
BOBJ - Outer Join

An outer join is a join that links two tables, one of which has rows that do not match those in the common column of the other table. More ... You define an outer join by specifying which table is...
Data System Architecture
Dimensional Data Operation - Data Densification (sparse to dense data) - Preservation of the dimensions

You may want to view the data in dense form, with rows for all combination of dimension values displayed even when no fact data exist for them. The densification is also : known as thepreservation...
Obiee Logical Join Bmm
OBIEE - Left outer join

How can we perform a join with the type left outer in OBIEE. To know what is a left outer join, follow this link : In the logical join of the business model layer: Example of left outer join...
Data System Architecture
SQL - Joins (Home)

in SQL. A join is a SQL clause statement which define the set operation such as: intersection, union, that the database must perform between two or more relation (table, view, query, ...). The...
Data System Architecture
SQL - Outer Join

An outer join extends the result of a equi join. An outer join returns all rows that satisfy the join condition and also returns some or all of those rows from one table for which no rows from the other...



Share this page:
Follow us:
Task Runner