I have a comma delimited string of keywords which I have successfully transformed into a list using a function that takes a @String
and returns a TABLE(Value varchar(30))
I can now use this list in a where clause like follows:
SELECT project.*
FROM Projects project
WHERE project.title IN (SELECT * FROM dbo.ParamsToList('.net,test'))
This matches where project.title is exactly (equal to) any one of the keywords (.net or test).
What I need is to match where title is LIKE '%' + any-keyword + '%'
.