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.
SQL LEFT JOIN
SQL LEFT JOIN command returns all records from the left table and matching records from the right table.
Contact Us