Conditional

Function Name Description
BOOL_AND Computes the boolean AND of two boolean expressions. Returns TRUE if both expressions evaluate to TRUE. Returns FALSE if one or both expression(s) evaluate(s) to FALSE.
BOOL_OR Computes the boolean OR of two boolean expressions. Returns TRUE if one or both expressions evaluate to TRUE. Returns FALSE if both expressions evaluate to FALSE.
CASE Evaluates a list of conditions and returns the first resulting true expression. If a true expression is not found, will return the ELSE statement, if present, or else will return NULL.
COALESCE Evaluates the arguments in order and returns the value of the first expression that does not contain NULL.
ISNULL Determines if an expression is NULL. Returns true if is NULL, and false otherwise. Alias for the operator IS NULL.
NULLIF Compares two expressions. If the values in each expression are equal, returns NULL and, if they are not equal, returns the value of the first expression.