Ezequias Rodrigues da Rocha wrote:
SELECT distinct cli.bairro, COUNT( * ) as qtdGoogle/read tutorial for HAVING. E.g. SELECT distinct cli.bairro, COUNT( * ) as qtd FROM base.cliente cli GROUP BY cli.cidade, cli.bairro HAVING COUNT(*) > 1 Zizi |
- Re: [SQL] Count and list only where count is bigger than 1 Mezei Zoltán