Re: count( distinct x ) - Mailing list pgsql-sql

From Anthony
Subject Re: count( distinct x )
Date
Msg-id 3A22B3E1.68A66ABD@a1.org.uk
Whole thread Raw
In response to count( distinct x )  (Anthony <lists@a1.org.uk>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: count( distinct x )
Next
From: Anthony
Date:
Subject: Re: count( distinct x )