dealmaker
07-17-2005, 12:20 AM
Hi,
I am trying to writing a sql query that matches 2 tables consisted of rows of keywords. The keywords can have minus sign in front of them, and it means keywords I don't want to match.
for examples:
a. table 1 row 1 keywords: hello good morning -afternoon
b. table 2 row 1 keywords: hello good morning
c. table 2 row 2 keywords: hello good afternoon
d. table 2 row 3 keywords: hello good -morning
so, a matches b, and but not d and c.
How can I do that? AGAINST () take words only, not columns.
I am trying to writing a sql query that matches 2 tables consisted of rows of keywords. The keywords can have minus sign in front of them, and it means keywords I don't want to match.
for examples:
a. table 1 row 1 keywords: hello good morning -afternoon
b. table 2 row 1 keywords: hello good morning
c. table 2 row 2 keywords: hello good afternoon
d. table 2 row 3 keywords: hello good -morning
so, a matches b, and but not d and c.
How can I do that? AGAINST () take words only, not columns.