i would like to build a CASE statement that incorporates the following logic, but the sql compiler does not like the 'OR' in my statement:
CASE expression
WHEN expression1 OR expression2
THEN <yadda yadda>
ELSE <yadda yadda>
END
more specific code below:
CASE @var1
WHEN '99' OR '22'
THEN
(CASE @var2
WHEN 'All' THEN col1
ELSE @var2
END)
END