Select cxc.NUFAC_CC, cxc.NOMBR_CC, cxc.IMCUE_CC, fact.CLDOC_F, fact.NOMBR_F, fact.IMTOD_F From "C:\bases2\CuCobrar.dbf" AS cxc, "C:\bases2\FacturaE.dbf" AS fact WHERE TIMOV_CC="1" and fact.CLDOC_F=cxc.NUFAC_CC and cxc.IMCUE_CC<>fact.IMTOD_F ORDER BY NUFAC_CC