SELECT 
    num_noi, -- [0]
    sd, -- [1]
    sdi, -- [2]
    fecha_ing, -- [3]
    FLOOR(DATEDIFF(NOW(), fecha_ing) / 365) AS antiguedad_anios, -- [4]
    departamento, -- [5]
    nombre, -- [6]
    p_apellido, -- [7]
    s_apellido, -- [8]
    curp -- [9]        
FROM ftrabajador
WHERE noi_status!='Baja'
AND num_noi NOT BETWEEN 2000 AND 9999
ORDER BY num_noi ASC