Stringquery="select tabla1.* from (SELECT codper,dni,apellido,nombre,horaing,mining,horaingsabado,miningsabado,codcargo FROM personal WHERE retirado=0 and "
+"NOT codlocal in('L035','L053','L038') AND NOT pronoe=1 AND not codcargo in (71,13) and horaing < 19 order by codcargo) as tabla1 "
+"left join (SELECT "
+" p.codper "
+"FROM "
+" personal p "
+"INNER JOIN salidas_update su ON (p.codcargo=su.codcargo) "
+"WHERE retirado=0 AND p.horaing=su.horaLV "
+"and p.mining=su.minutoLV and p.horaingsabado=su.sabadoLV AND p.miningsabado=su.sabadoS "
+"and NOT p.codlocal in('L035','L053','L038') AND NOT pronoe=1 AND not p.codcargo in (71,13) and horaing < 19 ORDER BY p.codcargo) as tabla2 "
+"on tabla1.codper=tabla2.codper where tabla2.codper is null";