Hello Everyone,

I am a beginner trying to learn T-SQL and here is where I was stuck. Can anyone please help me out with this.

use AdventureWorks go

declare @n as int =1

n = CASE

when n=1 then print('n=1')

when n=2 then print ('n=2')

print ('that implies n>1')

when n=2+2 then print('n=4')

else

print('n is some other value.')

end

Thankyou very much.....It would be of great help !!