SQL Server IF ELSE Statement By Examples
In this syntax, if the Boolean_expression evaluates to TRUE then the statement_block in the BEGIN...END block is executed. Otherwise, the statement_block is skipped and the control of the program is passed to the statement after the END keyword.. Note that if the Boolean expression contains a SELECT statement, you must enclose the SELECT statement in parentheses.
DA: 46 PA: 33 MOZ Rank: 87