Question
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...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get StartedRecommended Textbook for
Concepts of Database Management
Authors: Philip J. Pratt, Mary Z. Last
8th edition
1285427106, 978-1285427102
Students also viewed these Databases questions
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
Question
Answered: 1 week ago
View Answer in SolutionInn App