SQL Flow Field Guide

RIGHT OUTER JOIN

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

RIGHT OUTER JOIN: all right rows; unmatched left columns become NULL

What changes

Input
two input rowsets
Output or change
joined rowset

Syntax at a glance

table_source RIGHT [ OUTER ] JOIN table_source ON search_condition

Work example

A reconciliation must keep every right-side row and any matching left-side details.

Use one right-only key and one matching key. Consider reversing inputs and using LEFT JOIN for easier reading.

Check your work RIGHT OUTER JOIN. The right-only row remains with NULL left columns and matching rows appear once per match.

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