Can I use an IN statement as part of a case, something like this
SELECT COLB,
CASE
WHEN mt.testshoe IN (34,55,88) OR o.TestType IN (201) THEN 'ABC'
WHEN (ColA IS NULL) THEN 'DEF'
END AS testval
Can I use an IN statement as part of a case, something like this
SELECT COLB,
CASE
WHEN mt.testshoe IN (34,55,88) OR o.TestType IN (201) THEN 'ABC'
WHEN (ColA IS NULL) THEN 'DEF'
END AS testval