I have the following in a field ABCD, EFG, HIJ and can confirm this by selecting it. I need to be able to search this string for ABCD so I used the following:
case
when CHARINDEX(g.letters ,'ABCD') <> 0
then (- 2)
else (- 1)
end
However its always returning -1