LEFT JOIN in SQL

LEFT JOIN in SQL is used to combine rows from two or more tables, based on a related column between them. It returns all rows from the left table and matching records from the right table.

If there is no matching record in the right table, then the records from the right table will contain NULL values.

That means that, if a certain row is present in the left table but not in the right, the result will include this row but with a NULL value in each column from the right. If a record from the right table is not on the left, it will not be included in the result.

LEFT JOIN Venn Diagram

This VENN diagram shows how a LEFT JOIN works.

LEFT JOIN

SQL LEFT JOIN

SQL LEFT JOIN command returns all records from the left table and matching records from the right table. 

Similar Reads

LEFT JOIN in SQL

LEFT JOIN in SQL is used to combine rows from two or more tables, based on a related column between them. It returns all rows from the left table and matching records from the right table....

Syntax

The LEFT JOIN Syntax is:...

Important Points About SQL LEFT JOIN

LEFT JOIN returns all records from the left table and matching records from the right table. NULL values are included for unmatched records on the right side. LEFT JOIN is used to combine data based on related columns. Aliases can simplify queries with long table names. LEFT JOIN with WHERE clause is used for filtering records....

Contact Us