Obrigado Vinicius e Rafael, a dica do Vinicius já matou a pau! Obrigado
Em 17 de março de 2015 11:45, Vinicius Santos < [email protected]> escreveu: > Em 17 de março de 2015 11:39, Rafael Fialho <[email protected]> > escreveu: > >> Em 17 de março de 2015 11:36, Douglas Listas <[email protected]> >> escreveu: >> >> Bom dia! >>> >>> Galera, esse select: >>> >>> select cpf_comprador, list(distinct nome_comprador), sum(vlr) from >>> vendas group by cpf_comprador; >>> Roda em um banco Sybase (Watcom)... >>> >>> > Substitua list por string_agg[1]. > > > [1] = http://www.postgresql.org/docs/9.4/static/functions-aggregate.html > > > _______________________________________________ > pgbr-geral mailing list > [email protected] > https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral > >
_______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
