What does left join mean?

In databases & SQL, left join means a join that returns all rows from the first (left) table and the matching rows from the second; where there is no match, the second table's columns are NULL.

nounCore term

Databases & SQL vocabulary · SQL Statements and Queries

In Turkish: sol birleştirme, left join, sol dış birleştirme

Also used in: Software Engineering

How it is used

Also written LEFT OUTER JOIN; the two mean the same. It is used to keep rows that have no partner, for example customers with no orders. A classic trick is LEFT JOIN ... WHERE right_table.id IS NULL to find rows with no match.

Example sentences

  1. Use a left join so customers without any orders still appear in the list.

  2. Putting a condition on the right table in the WHERE clause turns your left join into an inner join.

Common collocations

  • left join on
  • LEFT OUTER JOIN
  • left join with IS NULL
  • use a left join

More terms: SQL Statements and Queries

Practise with graded reading

Reading at the right level is the fastest way to make new words stick. Pick free English books by level: