Re: Counting unique rows as an aggregate. - Mailing list pgsql-general

From Richard Broersma
Subject Re: Counting unique rows as an aggregate.
Date
Msg-id 396486430809292204o2879fe51o8056e8aa1b9a1a84@mail.gmail.com
Whole thread Raw
In response to Re: Counting unique rows as an aggregate.  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Counting unique rows as an aggregate.  (Klint Gore <kgore4@une.edu.au>)
List pgsql-general
On Mon, Sep 29, 2008 at 4:36 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:

> SELECT count(distinct make), count(distinct color) from table WHERE >criteria<;

Is this in the SQL spec?  I didn't know Agg functions could do this?


--
Regards,
Richard Broersma Jr.

Visit the Los Angeles PostgreSQL Users Group (LAPUG)
http://pugs.postgresql.org/lapug

pgsql-general by date:

Previous
From: Abdul Rahman
Date:
Subject: Re: Replication using slony-I
Next
From: Klint Gore
Date:
Subject: Re: Counting unique rows as an aggregate.