anonymous
2007-03-21 08:09:58 UTC
SELECT * FROM users_table WHERE CONTAINS(Last_Name,'var_for_Last_Name*')
A bug occurs if someone's last name contains a noise word. For example, one of the users has a last name of "See Jones". Since "see" is a noise word, it throws the query off and doesn't return any records.
My question is, why do you think the person who created this query used the contains predicate instead of the like predicate?
What are the benefits of using CONTAINS to search last names over using LIKE?
Can I change the query to "WHERE Last_Name like '%var_for_last_name%' and still produce the same results, minus the noise word bug?