Gracias.
Código SQL:
Ver original
SELECT rpe, (SELECT SUM(importe) FROM b_cijubi,b_parame WHERE cl_afect='231' AND b_parame.numnomin=b_cijubi.numnomin AND fe_teper BETWEEN '2010-11-10' AND '2011-11-10' GROUP BY rpe), SUM(importe) FROM b_cijubi,b_parame WHERE b_parame.numnomin=b_cijubi.numnomin AND fe_teper BETWEEN '2010-11-10' AND '2011-11-10' AND cl_afect='232' GROUP BY rpe