Código SQL [-] Select sum(decode(suma, 1, importe, importe * -1)) from tabla;
Select sum(decode(suma, 1, importe, importe * -1)) from tabla;