this is my query
porcentaje = isnull((
select sum(x.valor)*100/(select sum(ccc.Valor)
from CuentasPorCobrar ccc)
from CuentaCorriente x
where x.Detalle like 'Pago%'
),0)
x.Value = -5250.00
ccc.Value = 1000.00 the resutal that launches me is: -525.00
but I want to get the percentage = 19.04