[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Oracle SQL 11g

Asked by iolike in Oracle SCM

I am having problems creating a relationship between these two tables

I am getting the following error

SQL> alter table school_visits add foreign key (school_id) references
  2  school_info (school_id);
school_info (school_id)
             *
ERROR at line 2:
ORA-02270: no matching unique or primary key for this column-list

Attachments:
 
tables description
 
[+][-]11/02/09 10:46 PM, ID: 25726531Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625