Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Search text field with multiple keywords

Author  Topic 

WildMan
Starting Member

22 Posts

Posted - 2001-07-20 : 11:50:45
Hello,

I have two tables a Info table and a keywords table. The info table has the column I would like to search through which is a text column or I could convert it to a large varchar field if necessary. The second table is the keywords table which could have 1 to how ever many keywords the users would like to search upon. The keywords table is like this.

UserID Keyword
1 ASP
1 SQL
2 database
2 Query
2 SQL 2000

Now what I need to do is search the info table column using the Keywords table per each user.

Does any one know of a good way to do this? I have search all over the place and have not found a good way to do this. I tried the IN statement but that seems to only work if you are evaluating one word and not a whole paragraph of information.

Thanks for your help, I hope explained this well enough.

Joey

   

- Advertisement -