SELECT some fields, ... nrh14000.Dir_emp ; <<--- This field is the problem FROM nrh10300 , nrh10200, nrh14000 ; INTO TABLE outrh\Maemp ; WHERE nrh10200.Numemp = nrh10300.Numemp ; AND nrh14000.Numemp = nrh10300.Numemp ; AND (nrh10300.Numemp < 0 ; AND nrh10200.Tarchc = 'S' ; <B>AND nrh10300.Tnoemp < 'J' ; AND nrh10300.Tnoemp < 'P' ;</b> AND nrh10300.Tnoemp < 'B' ; AND nrh10300.Numemp IN ; (SELECT nrh34100.Numemp FROM nrh34100 WHERE nrh34100.Checador < 0)) ; AND &cDepSec ; ORDER BY nrh10300.NumempYou can remove highlighted lines w/o affecting your query because nrh10300.Tnoemp would be less than 'J' or 'P' if it's less than 'B'.