I have two tables.
First contain list of used words, second keep black list of words which can’t be shown ever.
First table (A) example
+---------------+
| keyword |
+---------------+
| php |
| php developer |
| developer |
| c# |
+---------------+
Second table (B) example:
+-----------+
| word |
+-----------+
| developer |
| foo |
| music |
+-----------+
I have to show everything from 1st table except rows which fully or partially contain words from second table.
Based on content above, for instance, i should show only two rows
php and c#.
How i can reach the same result with help SQL (very good if it will be one)
I can make only this
select * from A where keyword not in(select word from B);
but it’s strict comparision. it’s not enough to me.
Any advice are welcome.
Thanks.
It would be something like this:
You select all the words from A that contain words of B and afterwords you select the other words.