Ola, preciso fazer o select abaixo, tem que retornar somente um registro, mas como o campoString é diferente, retornam varios registros, como posso resolver ? SELECT max(campoInteger), campoString FROM tabela where outroCampoInteger = 31 group by campoInteger, campoString
já tentei colocar max(campoString), mas não deu certo , retorna um registro, mas misturou o campoInteger de um registro com o campoString de outro registro Obrigado Jean Alysson
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
