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 2005 Forums
 Transact-SQL (2005)
 help on full text and some other things!!!!

Author  Topic 

bilencekic
Posting Yak Master

121 Posts

Posted - 2007-02-21 : 14:53:23
hey,
i have a forum database
my friend says that full text catalog holds the words that inserted to database and how many of them exists in database.
is that true ?
i dont believe this.
cant be true
.
well
i need a word count in my database and which have the max exist number.
i dont have the world list.
how can i get the word which existed max on my database ?


according to me , it is imposibble.
if you dont have the word list.
and it will take ages to count a word that how many it existed on the table . (counting the word on string and on 10.0000 messages)

MS BLESS US

GazNewt
Starting Member

14 Posts

Posted - 2007-02-21 : 17:31:35
Yes it is definitely possible. This is how google can so quickly locate web pages containing your search phrase.

There will be table called tags, for example :

id tag
-- ---
1 my
2 first
3 entry

and a table which links these tag records to the forum post called forumentry_tags, for example :

id forumentryid tagid nexttagid
-- ------------ ----- ---------
1 1002 1 2
2 1002 2 3
3 1002 3 NULL

These would be the entries for forum post id 1002, which is "my first entry". For longer posts there would be more records.

You need to locate the equivalent of the forumentry_tags table and do a select like this :

select top 1 count(tagid) from forumentry_tags group by tagid

something like that anyway...
Go to Top of Page
   

- Advertisement -