My Previous query was:
I'm trying to create a Constraint named FK_ANALYSER_COLUMNS_ANALYSER
for table ANALYSER_COLUMNS
the SQL query is:
alter table ANALYSER_VALUES add constraint FK_ANALYSER_VALUES_ANALYSER foreign key (ANALYSERID) references ANALYSER (ANALYSERID)
Result:
ERROR at line 1:
ORA-02298: cannot enable (EMSMAIN.FK_ANALYSER_VALUES_ANALYSER) - parent keys
not found
To resolve the problem I ran the following SQL statement as advised on the database and no rows where returned:
SQL> select analyserid from analyser_values
2 minus
3 select analyserid from analyser;
no rows selected
Do we need to add a selection criteria to the SQL statement?
I'm trying to create a Constraint named FK_ANALYSER_COLUMNS_ANALYSER
for table ANALYSER_COLUMNS
the SQL query is:
alter table ANALYSER_VALUES add constraint FK_ANALYSER_VALUES_ANALYSER foreign key (ANALYSERID) references ANALYSER (ANALYSERID)
Result:
ERROR at line 1:
ORA-02298: cannot enable (EMSMAIN.FK_ANALYSER_VALUES_ANALYSER) - parent keys
not found
To resolve the problem I ran the following SQL statement as advised on the database and no rows where returned:
SQL> select analyserid from analyser_values
2 minus
3 select analyserid from analyser;
no rows selected
Do we need to add a selection criteria to the SQL statement?