0

I have a query where I want to filter by multiple values with like.

I have read the answer in below link:

Is there a combination of "LIKE" and "IN" in SQL?

The only difference I have here is I don't have values that I want to look for as stated in the answer as below:

WHERE CONTAINS(t.something, '"bla*" OR "foo*" OR "batz*"')

The values I want to query is coming from splitting a string:

select value from string_split(@String_With_Commas,',')

So how can I create the below query's second part (containing OR's) coming from the splitted string values ?

  WHERE CONTAINS(t.something, '"bla*" OR "foo*" OR "batz*"')

0 Answers0