Count and list only where count is bigger than 1 - Mailing list pgsql-sql

From Ezequias Rodrigues da Rocha
Subject Count and list only where count is bigger than 1
Date
Msg-id 55c095e90609190804w1eaac2aanc660020995d3710a@mail.gmail.com
Whole thread Raw
Responses Re: Count and list only where count is bigger than 1
Re: Count and list only where count is bigger than 1
Re: Count and list only where count is bigger than 1
List pgsql-sql
Hi list,<br /><br />It is possible to make a count select and only display where count column is bigger than 1 ?<br
/><br/>My SQL is like this<br /><br />SELECT distinct cli.bairro, COUNT( * ) as qtd<br />FROM base.cliente cli<br
/>GROUPBY cli.cidade, cli.bairro<br />ORDER BY 2<br /><br /><span style="font-weight: bold;">I noticed that I cannot
use"where qtd > 1" ok ?</span><br /><br />What to do ?<br /><br />Regards ...<br clear="all" /><br />-- <br />
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br
/>                                  Atenciosamente(Sincerely)<br />                        Ezequias Rodrigues da
Rocha<br/> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<br />A pior das democracias ainda é
melhordo que a melhor das ditaduras <br />The worst of democracies is still better than the better of dictatorships<br
/><ahref="http://ezequiasrocha.blogspot.com/">http://ezequiasrocha.blogspot.com/</a> 

pgsql-sql by date:

Previous
From: Tom Lane
Date:
Subject: Re: Nested loops are killing throughput
Next
From: Mezei Zoltán
Date:
Subject: Re: Count and list only where count is bigger than 1