CASE statement [T-SQL]

Selects an execution path based on multiple cases.

 Syntax 1
 Syntax 2
 Remarks
 Permissions
 Side effects
 See also
 Standards and compatibility
 Example