Ola à lista,

Como posso fazer uma consulta de agregação (GROUP BY) e com uma restrição
tipo WHERE?
Exemplo:

SELECT count(x) FROM tabela WHERE count(x)>1 GROUP BY x;

Obrigado!

Eloi Ribeiro
GIS Analyst
39,45º -4,40º
http://eloiribeiro.wordpress.com
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a