Re: Conditional return of aggregated data - Mailing list pgsql-general

From Ravi Krishna
Subject Re: Conditional return of aggregated data
Date
Msg-id trinity-d2559a0b-faa4-465b-b2cd-1878b08feb22-1575287569190@3c-app-mailcom-lxa05
Whole thread Raw
In response to Conditional return of aggregated data  (Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>)
Responses Re: Conditional return of aggregated data
List pgsql-general
> My initial idea was something along the lines of :
>  select (select sum(statcount) from stats_residence) as aggstat,statcount,short_name_en from stats_residence where
aggstat>some_number;

Am I missing something basic.  The above can be done using
GROUP BY and HAVING clause.



pgsql-general by date:

Previous
From: Wim Bertels
Date:
Subject: Re: Conditional return of aggregated data
Next
From: "Ravi Krishna"
Date:
Subject: Re: Conditional return of aggregated data