Subject | RE: [firebird-support] Reverse Index Performance |
---|---|
Author | Salim Naufal |
Post date | 2004-11-22T21:10:26Z |
...
INSERT INTO KEYWORDS_STATS
SELECT COUNT(*), KWORD
FROM KEYWORDS
GROUP BY KWORD
The one I launched a few days ago is correct.
Best Regards
Salim
>>Second Question:Thanks Ann, you're correct. I forgot a line in the e-mail:
>>I have created a secondary table that contains the keyword words and
>>number
>>of occurrences. Ultimately such a table can be populated with a simple
>>query:
>>
>>INSERT INTO KEYWORDS_STATS
>>SELECT COUNT(*), KWORD
>>FROM KEYWORDS
>
>Errr.... in the message, you've left off the group by that you
>have in your running query, right?
>
>Regards,
>
>
>Ann
INSERT INTO KEYWORDS_STATS
SELECT COUNT(*), KWORD
FROM KEYWORDS
GROUP BY KWORD
The one I launched a few days ago is correct.
Best Regards
Salim