Skip to content

Commit 9ace102

Browse files
authored
Merge pull request #6550 from MarkPryceMaherMSFT/patch-2
Update logical-functions-iif-transact-sql.md
2 parents 9c0de3e + cb094fd commit 9ace102

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/t-sql/functions/logical-functions-iif-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ IIF( boolean_expression, true_value, false_value )
5353
IIF is a shorthand way for writing a CASE expression. It evaluates the Boolean expression passed as the first argument, and then returns either of the other two arguments based on the result of the evaluation. That is, the *true_value* is returned if the Boolean expression is true, and the *false_value* is returned if the Boolean expression is false or unknown. *true_value* and *false_value* can be of any type. The same rules that apply to the CASE expression for Boolean expressions, null handling, and return types also apply to IIF. For more information, see [CASE (Transact-SQL)](../../t-sql/language-elements/case-transact-sql.md).
5454

5555
The fact that IIF is translated into CASE also has an impact on other aspects of the behavior of this function. Since CASE expressions can be nested only up to the level of 10, IIF statements can also be nested only up to the maximum level of 10. Also, IIF is remoted to other servers as a semantically equivalent CASE expression, with all the behaviors of a remoted CASE expression.
56-
56+
57+
IIF is not supported in Azure Synapse Analytics Dedicated SQL Pool.
58+
5759
## Examples
5860

5961
### A. Simple IIF example

0 commit comments

Comments
 (0)