Re: Count Issues - Mailing list pgsql-general

From John Sidney-Woollett
Subject Re: Count Issues
Date
Msg-id 416EEAF5.1020408@wardbrook.com
Whole thread Raw
In response to Count Issues  (Dev <dev@umpa-us.com>)
Responses R: Count Issues
List 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
>

pgsql-general by date:

Previous
From: Steven Klassen
Date:
Subject: Re: Count Issues
Next
From: Alvaro Herrera
Date:
Subject: Re: Possibly stupid questions re: large tables/files, port 5432 access