Ver originalSET @total:=0;SELECT fecha,cargo,abono,(SELECT @total:=@total +(cargo-abono)) saldo FROM mitabla ORDER BY fecha;