SQL Flow Field Guide

Precedence

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

result type of mixed-type expressions

What changes

Input
none
Output or change
none

Syntax at a glance

n/a (reference page)

Work example

Explain which type SQL Server converts when an expression combines different types.

Cast an operand explicitly when the implicit conversion would narrow or scan an indexed column.

Check your work Type precedence can change both result type and whether an index predicate is usable.

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