Hello Guys,am trying to return a certain value for @x below, based on its status, but the variable remains as its original state and doesnt changepls helpmmdeclare @x varchar(500), @sally varchar(300)set @x = '00'SELECT @x as sally,( CASE WHEN @x = '00' then '300' WHEN LEFT(@x,1) = 'x' then 'Transaction could not be authorized. Please contact your bank or send an email ' WHEN LEFT(@x,1) = 'w' then 'GATEWAY Application error' WHEN @x = '14' then 'GATEWAY Application error' ELSE 'ERROR: Contact support' END ) as sally print @x
but @x always returns as the initial value