I would like to create a CASE statement that includes the following logic, but the sql compiler does not like "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
sion_corn
source share