ALTER TABLE RESTPRODGR ADD CONSTRAINT FKPLA00957FILIAL FOREIGN KEY (CDFILIAL, NRORG) REFERENCES FILIAL (CDFILIAL, NRORG)
/
CREATE INDEX FKPLA00957FILIAL ON RESTPRODGR (CDFILIAL, NRORG)
/
ALTER TABLE RESTPRODGR ADD CONSTRAINT FKPLA00958SERVICO FOREIGN KEY (CDFILIAL, CDSERVFILI, NRORG) REFERENCES SERVICO (CDFILIAL, CDSERVFILI, NRORG)
/
CREATE INDEX FKPLA00958SERVICO ON RESTPRODGR (CDFILIAL, CDSERVFILI, NRORG)