ALTER TABLE CONSUMOREAL ADD NRLANCESTQ VARCHAR2(10)
/
CREATE INDEX EST00621_FK ON CONSUMOREAL (CDFILIAL ASC, NRLANCESTQ  ASC)
/
ALTER TABLE CONSUMOREAL 
   ADD CONSTRAINT  FKEST00621LANCTOESTOQ  FOREIGN KEY (CDFILIAL, NRLANCESTQ ) 
	REFERENCES LANCTOESTOQ (CDFILIAL, NRLANCESTQ )