select x.codigo,x.nome,x.cpf,x.contato,
x.limite_credito,
x.pendencia as pendencia
from
( select p.codigo,p.cpf,p.contato,p.limite_credito,p.grid,p.grupo,p.nome,
p.flag,p.tipo,m.child,m.pessoa,coalesce(sum(valor),0) as pendencia from
movto m...
asked by
07.05.2017 / 04:17