Can you assign more than one variable under a single condition in a select statement, like in Visual Basic:
If x=1 then
y=2
z=5
End If
I have lots of complicated conditions that I don't want to keep repeating, over and over.
I have SQL Server 2012.