Assuming my table is T and my column is C, I need to check if any substring in C has any of these values: Orange,Apple,Banana,Kiwi,Strawberry,Blueberry.
My actual list of values is over 80 in length and I would like to try to avoid the following:
Select * from T
Where C LIKE '%Orange%'
OR C LIKE '%Apple%'
OR C LIKE '%Banana%'
OR C LIKE '%Kiwi%'
OR C LIKE '%Strawberry%'
OR C LIKE '%Blueberry%'
Is there a way to insert my values into a table and compare it to that? I make this comparison multiple times in my query.