RE: count(distinct col) - Mailing list pgsql-novice

From Chau, Artemis
Subject RE: count(distinct col)
Date
Msg-id A60B56F3D180D211AC3F00A0C96931DE047871B8@orsmsx48.jf.intel.com
Whole thread Raw
In response to count(distinct col)  ("Chau, Artemis" <artemis.chau@intel.com>)
List pgsql-novice
Runing 6.5.2, get Syntax error for the statement.

-----Original Message-----
From: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Sent: Tuesday, August 01, 2000 5:00 PM
To: Chau, Artemis
Cc: 'pgsql-novice@hub.org'
Subject: Re: [NOVICE] count(distinct col)


"Chau, Artemis" <artemis.chau@intel.com> writes:
> What is the equivalent of
> "select count(distinct col) from tbl" in PGSQL?

That's easy, "select count(distinct col) from tbl".

(If you're running 7.0 that is.  If not, why not?)

            regards, tom lane


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: count(distinct col)
Next
From: "Wong, Edmond"
Date:
Subject: Copy table to [stdout] using XML