Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: Database: MS SQL Server
 Counting multiple instances of a keyword in fields
 New Topic  Topic Locked
 Printer Friendly
Previous Page
Author Previous Topic Topic Next Topic
Page: of 2

Kristen Baker-Munton
Starting Member

United Kingdom
1 Posts

Posted - 31 January 2004 :  07:41:01  Show Profile
Don't know if you are still stuck with this, but one answer might be to use a "delimiter split" on the text (splitting on [any of] SPACE, "-", ".", "," etc.) - that would create a complete list of all words in, say, a temporary table and then do your COUNT from there. I've got some code lying around for a SQL FUNCTION that does a delim-split, shout if it sounds like a runner. You'd probably have to use a cursor to process all the records, and if they are TEXT, rather than VARCHAR, that would add to the pain. (Assuming that not TOO many rows match "WHERE [MyText] LIKE '%hello%'" then the cursor won't be horribly slow)

Kristen
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Previous Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07