Re: optimizing count statement
Posted by:
Karolis
Date: October 12, 2005 08:05AM
mysql> SELECT COUNT(*) FROM (
-> SELECT 1 FROM INDEX_KEYS WHERE KeywordID IN (7, 8) GROUP BY DocumentID HAVING COUNT(DISTINCT KeywordID) = 2) AS x;
+----------+
| COUNT(*) |
+----------+
| 6204 |
+----------+
1 row in set (0.04 sec)
goodness :))))))))
Can you please explain why this is happening?
Subject
Views
Written By
Posted
4339
October 11, 2005 11:30AM
2050
October 12, 2005 04:56AM
1955
October 12, 2005 06:31AM
1620
October 12, 2005 07:11AM
1860
October 12, 2005 07:40AM
1750
October 12, 2005 07:53AM
1930
October 12, 2005 07:50AM
1906
October 12, 2005 08:01AM
Re: optimizing count statement
1879
October 12, 2005 08:05AM
1625
October 12, 2005 08:23AM
1905
October 12, 2005 08:22AM
1859
October 12, 2005 08:38AM
1996
October 12, 2005 08:46AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.