The amounts that I handle to make the query are:
(3427.2*100)/3716041.16 = 108427.9049953314659197012138188608776844
How to get it done that throws the percentage in whole because how will the system know that the percentage is 108%
SELECT (SUM(COBRADO) * 100) / SUM(TOTAL)
FROM CL_RP_COBRANZA_TNR_TEORICO
WHERE TO_CHAR(FECHA_VENCIMIENTO,'MM/RRRR')='10/2015' AND
ESTADO='HGO' AND
SECCION='15'
ORDER BY ESTADO, SECCION, FECHA_VENCIMIENTO;
I hope you can help me