I have the following query ready on an old system:
SELECT regional, r.cod_gerente AS cod_gerente,
u2.username AS nome_gerente,
s.COD_REPRESENTANTE AS cod_representante,
u1.username AS nome_representante,
SUM(s.jan_valor) AS...
asked by
23.11.2015 / 21:32