Prezados,
qual seria a sintaxe do postgresql para executar a seguinte consulta:

update tabela_tot set (nome_cli, tot_ana_1_2014) =
(select distinct (nome_cli), count(data_analise) as tot_analise from tabela_mov
where date_part('MONTH', data_analise) < 7
and date_part('YEAR', data_analise) = 2014
and ccs <> 0
group by nome_cli);

grato,
magalhj
_______________________________________________
pgbr-geral mailing list
[email protected]
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a