ALTER TABLE NOTAFISCAL DROP CONSTRAINT FKEST00011INSCREST
/
ALTER TABLE NOTAFISCAL
    ADD CONSTRAINT FKEST00011INSCREST FOREIGN KEY  (CDEMPRESA, CDINSCESTA)
       REFERENCES INSCRESTAD (CDEMPRESA, CDINSCESTA)
/

ALTER TABLE ITEMAUTF DROP CONSTRAINT FKCMP00197NOTAFISC
/
ALTER TABLE ITEMAUTF
    ADD CONSTRAINT FKCMP00197NOTAFISC FOREIGN KEY  (CDFILLANC, NRLANCTONF)
       REFERENCES NOTAFISCAL (CDFILIAL, NRLANCTONF)
/