I want to filter all entry where Name is like 'Aay%' , 'Ara%', 'Kim%', .....
For IN
, I use:
SELECT *
FROM TABLE
WHERE NAME IN @List_OF_NAME
For LIKE
:
SELECT *
FROM TABLE
WHERE NAME LIKE 'Aay%'
Is there anyway to combine the two approach. so, that I get all the entry where name is like 'Aay%' , 'Ara%', 'Kim%'.....
? Any leads to get this functionality?
EDIT: I tried the approach mentioned here: Is there a combination of "LIKE" and "IN" in SQL?
But, I get this error:
Cannot use a CONTAINS or FREETEXT predicate on column 'Name' because it is not full-text indexed