Good afternoon:
What I need is the following:
Within a CASE
, you can manipulate two different variables in the THEN
(ex: @var1=a
and @var2=1
) in case the WHEN
is fulfilled.
I have not been able to do it. I tried all the possible syntax but I always get an error.
It only allows me to manipulate a single variable in THEN
since putting and
or ,
to manipulate another variable gives me the error, as I try to represent in bold in the following example.
WHEN @dia = 'Friday' THE GETDATE () + 3) AND @ var = 4
PS: it is not a duplicate question. Greetings. Juan