Create Table Maintenance_Record( MaintenanceID int NOT NULL, Description_of_Maintenance VarChar2(40) NOT NULL, Date_of_Maintenance Date NOT NULL, constraint MAINTENANCE_RECORD_PK PRIMARY KEY (MaintenanceID), constraint MAINTENANCE_RECORD_EMPLOYEE_FK FOREIGN KEY (EmployeeID) REFERENCES EMPLOYEE(EmployeeID) ON UPDATE NO ACTION ON DELETE NO ACTION ); Error report - ORA-00904: "EMPLOYEEID": invalid identifier 00904. 00000 - "%s: invalid identifier" *Cause: *Action: I am trying to create a table for Maintenance Record and I could not get it to work as there is an error saying employeeID is an invalid identifier. i want to declare employeeID as a foreign key in the table but at the (ON UPDATE NO ACTION ON DELETE NO ACTION) part, the UPDATE is being underlined with the syntax error (Partially Recognized rules). Please help!

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter4: Constraints
Section: Chapter Questions
Problem 11MC: In the initial creation of a table, if a UNIQUE constraint is included for a composite column that...
icon
Related questions
Question

Create Table Maintenance_Record(
MaintenanceID int NOT NULL,
Description_of_Maintenance VarChar2(40) NOT NULL,
Date_of_Maintenance Date NOT NULL,
constraint MAINTENANCE_RECORD_PK PRIMARY KEY (MaintenanceID),
constraint MAINTENANCE_RECORD_EMPLOYEE_FK FOREIGN KEY (EmployeeID)
REFERENCES EMPLOYEE(EmployeeID)
ON UPDATE NO ACTION
ON DELETE NO ACTION
);

 

Error report -
ORA-00904: "EMPLOYEEID": invalid identifier
00904. 00000 - "%s: invalid identifier"
*Cause:
*Action:

 

I am trying to create a table for Maintenance Record and I could not get it to work as there is an error saying employeeID is an invalid identifier. i  want to declare employeeID as a foreign key in the table but at the (ON UPDATE NO ACTION ON DELETE NO ACTION) part, the UPDATE is being underlined with the syntax error (Partially Recognized rules). Please help!

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Fundamentals of Datawarehouse
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage