Created
March 7, 2014 16:13
-
-
Save DominicFinn/9414440 to your computer and use it in GitHub Desktop.
Case statement for Wilf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare @number int | |
set @number = 1 | |
select case @number when 1 | |
then 'yes' | |
else 'no' | |
end as NumberOrYes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment