Skip to content

Instantly share code, notes, and snippets.

@DominicFinn
Created March 7, 2014 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DominicFinn/9414440 to your computer and use it in GitHub Desktop.
Save DominicFinn/9414440 to your computer and use it in GitHub Desktop.
Case statement for Wilf
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