Left Join
Left Join
The Left Outer Join is used to retrieve all the matching records from both the
tables as well as non-matching records from the left side table. In that case, the
non-matching data will take a null value. The LEFT OUTER JOIN or LEFT JOIN keyword
is used to perform the left join.
The question that should come to your mind is which is the left table and which is
the right table? The answer is, the table which is mentioned to the left of the
LEFT OUTER JOIN keyword is the left table, and the table which is mentioned to the
right of the LEFT OUTER JOIN keyword is the right table.
When do we need to use Left JOIN sql?
If you want to retrieve all the matching rows from both the tables involved in the
join as well as all the non-matching rows from the left side table in the result
set then you need to use Left Join . In that case, the non-matching rows will take
a null value.
Joining three Tables in sql using Left Outer Join with Examples