Hot Spot Question: Explore the ERD and corresponding code to identify the error. Figure: Entity Relationship Diagram (ERD). Employee Employee number Department First name Last name Job title Dept number works Dept name in Dept location Dept number Instructions: Click on the keyword, entity (table) or attribute (column) name in the code below where there is a mistake: CREATE TABLE Department( DeptNumber INT NOT NULL AUTO_INCREMENT, DeptName VARCHAR(60), DeptLocation VARCHAR(5), FOREIGN KEY (DeptNumber) );

icon
Related questions
Question
Hot Spot Question:
Explore the ERD and corresponding code to identify the error.
Figure: Entity Relationship Diagram (ERD).
Employee
Employee number
Department
First name
Last name
Job title
Dept number
works
Dept name
in
Dept location
Dept number
Instructions: Click on the keyword, entity (table) or attribute (column) name in the code below where there is a mistake:
CREATE TABLE Department(
DeptNumber INT NOT NULL AUTO_INCREMENT,
DeptName VARCHAR(60),
DeptLocation VARCHAR(5),
FOREIGN KEY (DeptNumber)
);
Transcribed Image Text:Hot Spot Question: Explore the ERD and corresponding code to identify the error. Figure: Entity Relationship Diagram (ERD). Employee Employee number Department First name Last name Job title Dept number works Dept name in Dept location Dept number Instructions: Click on the keyword, entity (table) or attribute (column) name in the code below where there is a mistake: CREATE TABLE Department( DeptNumber INT NOT NULL AUTO_INCREMENT, DeptName VARCHAR(60), DeptLocation VARCHAR(5), FOREIGN KEY (DeptNumber) );
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer