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.