Re: Count Issues

From: John Sidney-Woollett <johnsw(at)wardbrook(dot)com>
To: Dev <dev(at)umpa-us(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Count Issues
Date: 2004-10-14 21:09:09
Message-ID: 416EEAF5.1020408@wardbrook.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

How about ...

select count(distinct this) from table

John Sidney-Woollett

Dev wrote:
>
> Hello all,
>
> I am trying to get a total number of rows returned form a query.
>
> SELECT count(this) from table group by this
>
> Currently it is returning x rows with a count of each of the group by.
>
> I need the count of the rows returned!
>
> Any way to do this?
>
>
>
> ----------
>
> UMPA
> Brian C. Doyle
> Director, Internet Services
> United Merchant Processing Association
> <http://www.umpa-us.com>http://www.umpa-us.com
> 1-800-555-9665 ext 212
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Kris Jurka 2004-10-14 21:18:56 Re: RE : Postgres 8.0 + JDBC
Previous Message Steven Klassen 2004-10-14 21:03:05 Re: Count Issues