Re: count( distinct x )

Поиск
Список
Период
Сортировка
От Anthony
Тема Re: count( distinct x )
Дата
Msg-id 3A22B3E1.68A66ABD@a1.org.uk
обсуждение исходный текст
Ответ на count( distinct x )  (Anthony <lists@a1.org.uk>)
Список pgsql-sql
Tom Lane wrote:

> Anthony <lists@a1.org.uk> writes:
> >     select count( distinct area ) from areapostcode where postcode like
> > 'BS1%'
> > the above statement fails with
> >     ERROR:  parser: parse error at or near "distinct"
>
> What Postgres version are you running?  Support for count(distinct foo)
> was added in 7.0, IIRC.
>
>                         regards, tom lane

select version();
version
-------------------------------------------------------------------
PostgreSQL 6.5.3 on i686-pc-linux-gnu, compiled by gcc egcs-2.91.66
(1 row)

bugger!

any ideas how to get same result at relative speed with different query?

Thanks Tom.




В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: count( distinct x )
Следующее
От: Anthony
Дата:
Сообщение: Re: count( distinct x )