Hi list,
It is possible to make a count select and only display where count column
is
bigger than 1 ?
My SQL is like this
SELECT distinct cli.bairro, ****( * ) as qtd
FRM base.cliente cli
GRUP BY cli.cidade, cli.bairro
RDER BY 2
I noticed that I cannot use "where qtd 1" ok ?
SELECT distinct cli.bairro, ****( * ) as qtd
FRM base.cliente cli
GRUP BY cli.cidade, cli.bairro
HAVING count(*) 1;
(end of broadcast)
TIP 3: Have you checked our extensive FAQ?