Ver originalselect ((select sum(antiguedad) from antiguedad,recursohumano WHERE puestoantiguedad='Enfermero' and idfuncionario=numerofunc)+(select sum(diasasc) from ascensos,recursohumano WHERE puestoasc='Enfermero' and numfuncasc=numerofunc and aschasta<=curdate())+(select sum(diasnomb) from legibles,recursohumano where puestonomb='Enfermero' and numerofunci=numerofunc )) as total;