Count and list only where count is bigger than 1

Поиск
Список
Период
Сортировка
От Ezequias Rodrigues da Rocha
Тема Count and list only where count is bigger than 1
Дата
Msg-id 55c095e90609190804w1eaac2aanc660020995d3710a@mail.gmail.com
обсуждение исходный текст
Ответы 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
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Nested loops are killing throughput
Следующее
От: Mezei Zoltán
Дата:
Сообщение: Re: Count and list only where count is bigger than 1