IIF Vs CASE | SQL Server | SQL Tutorial

preview_player
Показать описание
The SQL Server CASE Expression consists of at least one pair of WHEN and THEN Expressions. The WHEN Expression specifies the condition to be tested. The THEN Expression specifies the action if the WHEN condition returns TRUE.

CASE Expression in SQL Server:

IIF
IIF Function in SQL Server Returns one of two values, depending on whether the Boolean expression evaluates to true or false in SQL Server.
Syntax:
IIF( boolean_expression, true_value, false_value )
Рекомендации по теме
welcome to shbcf.ru