Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Error code 1215 Cannot add foreign key constraint in MySQL Workbench CREATE TABLE QUALIFIED (FacultyID INT NOT NULL, CourseID CHAR(8) NOT NULL, DateQualified DATE, CONSTRAINT

 Error code 1215 Cannot add foreign key constraint in MySQL Workbench

CREATE TABLE QUALIFIED (FacultyID INT NOT NULL, CourseID CHAR(8) NOT NULL, DateQualified DATE, CONSTRAINT Qualified_PK PRIMARY KEY (FacultyID, CourseID), CONSTRAINT Qualified_FK1 FOREIGN KEY (FacultyID) REFERENCES Faculty (FacultyID), CONSTRAINT Qualified_FK2 FOREIGN KEY (CourseID) REFERENCES Course (CourseID));

Resolve it.

Step by Step Solution

3.53 Rating (153 Votes )

There are 3 Steps involved in it

Step: 1

The error code 1215 in MySQL Workbench typically indicates an issue with creating a foreign key cons... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

How do you include a field in an Access query?

Answered: 1 week ago