SQL Flow Field Guide

SELECT ALL

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

no-op marker (default)

What changes

Input
projected rows
Output or change
all rows including duplicates

Syntax at a glance

SELECT ALL <select_list>

Work example

A result needs SELECT ALL to state whether duplicate rows should remain.

Add two identical literal rows and compare the result. Remove DISTINCT if a join is creating duplicates that should be fixed at the source.

Check your work SELECT ALL. The duplicate behavior for SELECT ALL matches the requirement and does not hide a join-key problem.

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