I'm trying to find out if I can have a field, AdjustmentType which is in a table called Opportunities, as part of a primary key and also a foreign key.
For example:
Opp_ID VARCHAR2 (255),
AdjustmentType NUMBER,
CONSTRAINT OPPORTUNITIES_PK PRIMARY KEY(Opp_ID, AdjustmentType)
ALTER TABLE OPPORTUNITIES ADD
CONSTRAINT SFDCCMS_OPPORTUNITIES_FK5
FOREIGN KEY (AdjustmentType)
REFERENCES ADJUSTMENTTYPE(MS_Key);
For example:
Opp_ID VARCHAR2 (255),
AdjustmentType NUMBER,
CONSTRAINT OPPORTUNITIES_PK PRIMARY KEY(Opp_ID, AdjustmentType)
ALTER TABLE OPPORTUNITIES ADD
CONSTRAINT SFDCCMS_OPPORTUNITIES_FK5
FOREIGN KEY (AdjustmentType)
REFERENCES ADJUSTMENTTYPE(MS_Key);