Skip to content

Instantly share code, notes, and snippets.

@dalmat36
Created March 15, 2014 16:20
Show Gist options
  • Save dalmat36/9569870 to your computer and use it in GitHub Desktop.
Save dalmat36/9569870 to your computer and use it in GitHub Desktop.
SQL Server 2012 IIF Function
/*Example IIF function*/
DECLARE @a int = 65, @b int = 25;
SELECT IIF (@a < @b, 'Yes', 'No') AS Result;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment