Re: Count Issues - Mailing list pgsql-general

From Andre Maasikas
Subject Re: Count Issues
Date
Msg-id 416EE980.2060701@abs.ee
Whole thread Raw
In response to Count Issues  (Dev <dev@umpa-us.com>)
List pgsql-general
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!
>
SELECT COUNT(DISTINCT this) FROM table

Andre

pgsql-general by date:

Previous
From: Thomas F.O'Connell
Date:
Subject: Re: Boolean
Next
From: Steven Klassen
Date:
Subject: Re: Count Issues