Row | f0_ | |
1 | 385011 |
Row | f0_ | |
1 | 290157 |
DISTINCT
keyword, the function returns the number of unique values in the specified field. Note that the returned value for DISTINCT
is a statistical estimate, not necessarily the exact value.
When you use the DISTINCT
keyword, you can also specify a value for n
(n > 0
). If the count is greater than n
, the function returns a statistical approximation. If the count is less than n
, the function returns an exact result. The default value for n
is 1000. Large values for n
might substentially increase query execution time.
In general, you should use COUNT([DISTINCT] field [, n])
instead of COUNT(*)
because specifying the field removes confusion over what you are counting when repeated fields are present.
"
We also stumbled across the same issue, and I got a clarification with the above info.
HTH.
- Sanjath