No—LEFT JOIN and LEFT OUTER JOIN are 100% identical in behavior, syntax meaning, and query execution across SQL dialects (including SQL Server/T-SQL, PostgreSQL, MySQL, Oracle, and SQLite). OUTER is an optional keyword in the SQL standard, so LEFT JOIN is simply the shorter, more commonly written form of LEFT OUTER JOIN.
1. Identical Behavior and Output
Both keywords return:
- All rows from the left table that match the
ONjoin condition (producing one output row for each matching right-table row). - All remaining rows from the left table that have no match in the right table, with
NULLin every column selected from the right table.
-- Identical execution and result set
SELECT
c.customer_id,
c.customer_name,
o.order_id,
o.order_total
FROM dbo.customers AS c
LEFT JOIN dbo.orders AS o
ON c.customer_id = o.customer_id;
SELECT
c.customer_id,
c.customer_name,
o.order_id,
o.order_total
FROM dbo.customers AS c
LEFT OUTER JOIN dbo.orders AS o
ON c.customer_id = o.customer_id;
- Neither query produces a different execution plan or different rows solely because
OUTERis included or omitted.
2. How OUTER Applies Across Outer Joins
The same optional-keyword rule applies to the other outer join types:
| Shorthand Form | Explicit Form | Behavior |
|---|---|---|
LEFT JOIN |
LEFT OUTER JOIN |
All left rows + matching right rows (NULL on right when unmatched) |
RIGHT JOIN |
RIGHT OUTER JOIN |
All right rows + matching left rows (NULL on left when unmatched) |
FULL JOIN |
FULL OUTER JOIN |
All left rows + all right rows (NULL on whichever side is unmatched) |
By contrast, INNER JOIN cannot be written as INNER OUTER JOIN—INNER and OUTER are mutually exclusive join categories.
3. Style and Best-Practice Notes
- Pick one style and stay consistent:
LEFT JOINis shorter and widely preferred in day-to-day queries;LEFT OUTER JOINis occasionally used by teams that prefer explicitOUTERkeywords to make outer-join intent unmistakable at a glance. - Watch
WHEREfilters on right-table columns: Whether you writeLEFT JOINorLEFT OUTER JOIN, filtering a right-table column inWHERE(such asWHERE o.status = 'PAID') can filter out unmatched left rows whereo.statusisNULL. - Prefer explicit
JOIN ... ONover legacy comma joins: Always write ANSILEFT JOIN ... ON ...rather than older vendor-specific outer-join syntax.
You must log in or register to comment.
