A few days ago I figured I’d add to my SQL repertoire and lo and behold I found that Microsoft added a few new SQL constructs to the T-SQL language. I remember how I felt about using the MERGE construct and in some instances it was very useful, but when I discovered IIF , CHOOSE , & THROW ( amongst some of the others like PARSE , CONCAT & ROWS ) I knew that I found some new toys. Let’s take a look at IIF , CHOOSE , & THROW . IIF If you’ve been using expressions in SSIS or VB.Net or even VBA, you should be familiar with “Inline If”. This function is prototyped as such: IIF([boolean evaluation], [return value if evaluation is true], [return value if evaluation is false]) This function is awesome as the evaluation can be assigned to a variable. There are SQL constructs like ISNULL , but IIF is way more effective when writing more robust & dynamic SQL scripts. It can be used such that: DECLARE @c INT = 10 ...