SELECT COUNT(DISTINCT)

From: Oleg Broytmann <phd(at)sun(dot)med(dot)ru>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: SELECT COUNT(DISTINCT)
Date: 1999-02-22 13:22:31
Message-ID: Pine.SOL2.3.96.SK.990222161946.6443A-100000@sun.med.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hello!

I am trying to execute query:
SELECT city_id, COUNT(DISTINCT pos_id)
...
GROUP BY city_id ;

but got the error:
ERROR: parser: parse error at or near "distinct"

It is me who do not understand SQL or postgres does not implement it?

Oleg.
----
Oleg Broytmann http://members.xoom.com/phd2/ phd2(at)earthling(dot)net
Programmers don't die, they just GOSUB without RETURN.

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message jose' soares 1999-02-22 13:44:34 Re: [HACKERS] lower() broken?
Previous Message Philip Shiels 1999-02-22 10:36:59 Tables names from query