List:General Discussion« Previous MessageNext Message »
From:<sinisa Date:February 24 2000 3:24pm
Subject:Re: Count of distinct?
View as plain text  
Bob German writes:
 > 
 > In a table of accesses (imported logfile) with a field called IP, how can I
 > get a count of distinct IP?
 > 
 > 


Hi!

You can try:

OUNT(DISTINCT expr,[expr...])

available since 3.23.0.

Regards,

Sinisa

+----------------------------------------------------------------------+
| TcX  ____  __     _____   _____  ___     ==  mysql@stripped            |
|     /*/\*\/\*\   /*/ \*\ /*/ \*\ |*|     Sinisa Milivojevic          |
|    /*/ /*/ /*/   \*\_   |*|   |*||*|     mailto:sinisa@stripped     |
|   /*/ /*/ /*/\*\/*/  \*\|*|   |*||*|     Larnaka, Cyprus             |
|  /*/     /*/  /*/\*\_/*/ \*\_/*/ |*|____                             |
|  ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^                            |
|             /*/             \*\                Developers Team       |
+----------------------------------------------------------------------+
Thread
Count of distinct?Bob German24 Feb
  • Re: Count of distinct?Graeme B. Davis24 Feb
  • Re: Count of distinct?sinisa24 Feb