SQL Server Logical Functions
This page lists the commonly used logical functions in SQL Server.
-
CASE
In SQL Server, theCASE
expression can perform branching based on certain conditions and return the corresponding results. -
COALESCE
In SQL Server, theCOALESCE()
function is used to return the value of the first non-null expression in a list of parameters. -
IIF
In SQL Server, theIIF()
function is a conditional function used to return different values based on specific conditions. -
NULLIF
In SQL Server, theNULLIF()
function is a conditional function that compares two expressions and returns NULL if they are equal, otherwise it returns the value of the first expression.