Question: Below is my SQL ode for the DEPARTMENT table in the picture provided, When running the code I get the error forgein key is incorrectly

Below is my SQL ode for the DEPARTMENT table in the picture provided, When running the code I get the error forgein key is incorrectly formed. Could you please show me hw to fix it
CODE FOR DEPARTMENT TABLE:
CREATE TABLE DEPARTMENT_maw
(Department_Name VARCHAR(15) NOT NULL,
Department_Number INT PRIMARY KEY NOT NULL,
Manager_SSN CHAR(9) NOT NULL,
ManageStartDate DATE,
CONSTRAINT DEPARTMENT_FK FOREIGN KEY(Manager_SSN) REFERENCES EMPLOYEE_xxx(SSN_Number)
);
 Below is my SQL ode for the DEPARTMENT table in the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!