I'm trying to check if a certain column has something like:
SELECT Id,
CASE CHARINDEX(Name,'Value A') WHEN 0 THEN '0'
ELSE '1'
END
FROM TABLE
This works for testing Value A
; now I want to check multiple values. For example, I'd like to check whether Name
matches any of Value A
, Value B
, Value C
. CHARINDEX
will only allow one at a time.
There is a way to do this?