SQL Flow Field Guide

FULL OUTER JOIN

Catalog support for SQL Server 2022 (16.x) and 2025 (17.x)

FULL OUTER JOIN: all rows from both sides; unmatched sides padded with NULL

What changes

Input
two input rowsets
Output or change
joined rowset

Syntax at a glance

table_source FULL [ OUTER ] JOIN table_source ON search_condition

Work example

A reconciliation must retain matched rows and unmatched rows from both sources.

Use one matching key, one left-only key, and one right-only key in a fixture.

Check your work The first pair is NULL and 3. The next pairs are 1 and NULL, then 2 and 2.

Practice SQL

Open in SQL Flow
SELECT l.Id AS LeftId, r.Id AS RightId
FROM (VALUES (1), (2)) AS l(Id)
FULL OUTER JOIN (VALUES (2), (3)) AS r(Id) ON r.Id = l.Id
ORDER BY LeftId, RightId;

Open Microsoft Learn for full syntax, permissions, and details for your version.