I have a list of keywords (strings) in which I need to identify any matches with a blacklist of keywords (strings in a separate table)
Any keyword/blacklist matches will be flagged in a bit field: Keyword.IsBlacklisted.
Is there an easy way to accomplish this in SQL?
The matches might be partial (i.e. blacklist = 'sex' keyword = 'sex toy')
SOLUTION - Thanks Daniel Spiewak
SELECT Keyword.Keyword FROM Keyword CROSS JOIN BlackList
WHERE (Keyword.Keyword
LIKE { fn CONCAT({ fn CONCAT('%', BlackList.Keyword) }, '%') })