Precedence
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.