Answer by Squirrel 1
you should be using IF . . ELSE for flow control not CASE .. WHENCASE .. WHEN is to use within a QUERY
View ArticleAnswer by Piotr Rodak
You can't mix assignment with output in CASE statement.You can print the output basing on the value of the @n variable using following syntax for example:declare @n int set @n = 1 print CASE when @n=1...
View Article
More Pages to Explore .....