Pessoal, existe possibilidade de transformar o SubSelect abaixo em Window Function ?
SELECT campo1,(SELECT campo1 FROM tabela2 GROUP BY campo1 ORDER BY count(campo1) DESC LIMIT 1) as subselect
FROM tabela1Neste SubSelect estou buscando em uma outra tabela o registro que contem mais ocorrencias.
obrigado,Wellington
_______________________________________________ pgbr-geral mailing list pgbr-geral@listas.postgresql.org.br https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral