I'm having a problem try to create for keys in my oracle table.
Example;
create table loan
(LoanID varchar2(6) PRIMARY KEY,
Issue_Date date not null,
Due_Date date not null,
Return_Date date not null,
Fine_total number(3,2),
FOREIGN KEY (Item_ID) REFERENCES AV_Item,
FOREIGN KEY (BookNo) REFERENCES Book,
FOREIGN KEY (MemberID) REFERENCES Member);
I have a member, book and av_item table. but i get the following error message;
SQL> create table loan
2 (LoanID varchar2(6) PRIMARY KEY,
3 Issue_Date date not null,
4 Due_Date date not null,
5 Return_Date date not null,
6 Fine_total number(3,2),
7 FOREIGN KEY (Item_ID) REFERENCES AV_Item,
8 FOREIGN KEY (BookNo) REFERENCES Book,
9 FOREIGN KEY (MemberID) REFERENCES Member);
FOREIGN KEY (Item_ID) REFERENCES AV_Item,
*
ERROR at line 7:
ORA-00904: invalid column name
Its not only the AV_item, its placed the bookno before the av, and still get the same error message but this time on the book table.
?
Example;
create table loan
(LoanID varchar2(6) PRIMARY KEY,
Issue_Date date not null,
Due_Date date not null,
Return_Date date not null,
Fine_total number(3,2),
FOREIGN KEY (Item_ID) REFERENCES AV_Item,
FOREIGN KEY (BookNo) REFERENCES Book,
FOREIGN KEY (MemberID) REFERENCES Member);
I have a member, book and av_item table. but i get the following error message;
SQL> create table loan
2 (LoanID varchar2(6) PRIMARY KEY,
3 Issue_Date date not null,
4 Due_Date date not null,
5 Return_Date date not null,
6 Fine_total number(3,2),
7 FOREIGN KEY (Item_ID) REFERENCES AV_Item,
8 FOREIGN KEY (BookNo) REFERENCES Book,
9 FOREIGN KEY (MemberID) REFERENCES Member);
FOREIGN KEY (Item_ID) REFERENCES AV_Item,
*
ERROR at line 7:
ORA-00904: invalid column name
Its not only the AV_item, its placed the bookno before the av, and still get the same error message but this time on the book table.
?