AI engineering glossary · SQL databases

What is LEFT JOIN?

LEFT JOIN (also called LEFT OUTER JOIN): A join that keeps every row from the left table and fills the right table's columns with NULL when no match exists. It is used to find items with no related records, by filtering for those NULLs.

Level: beginnerTopic: SQL databases

LEFT JOIN: an example

customers LEFT JOIN orders ... WHERE orders.id IS NULL lists customers who have never ordered.

Related terms

More SQL databases terms

Where you learn it

LEFT JOIN is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.