Expressions
none (documentation, rules or examples)
What changes
- Input
- none
- Output or change
- none
Syntax at a glance
{ constant | scalar_function | [ table_name. ] column | variable | ( expression ) | ( scalar_subquery ) | { unary_operator } expression | expression { binary_operator } expression | ranking_windowed_function | aggregate_windowed_function }
Work example
A SELECT list or predicate needs one value built from literals, columns, operators, or a function.
Check the expression's result type, precedence, and NULL path with literal values before using it across a table.
Check your work Expressions. The expression returns the intended value and type for ordinary, boundary, and missing inputs.
Open Microsoft Learn for full syntax, permissions, and details for your version.