Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is wrong with my code? See area circled in red SQL Fiddle MySQL 5.6 Build Schema View Sample Fiddle 1 Create Table employee (

What is wrong with my code?  See area circled in red

SQL Fiddle MySQL 5.6 Build Schema View Sample Fiddle 1 Create Table employee ( 2 employee_id INTEGER NOT 

SQL Fiddle MySQL 5.6 Build Schema View Sample Fiddle 1 Create Table employee ( 2 employee_id INTEGER NOT NULL, 3 first_name VARCHAR(30) NOT NULL, 4 last_name VARCHAR (30) NOT NULL, 5 hire_date DATE NOT NULL, 6 job_title VARCHAR(30) NOT NULL, 7 shop_id INTEGER NOT NULL, 8 PRIMARY KEY (employee_id) 9 FOREIGN KEY (shop_id) REFERENCES coffee shop (shop_id) 10 ); C Clear Edit Fullscreen" Browser > Text to DDL Run SQL Please build schema. Edit Fullscreen" [:] D [:] * You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'FOREIGN KEY (shop_id) REFERENCES coffee_shop (shop_id) )' at line 9

Step by Step Solution

3.40 Rating (150 Votes )

There are 3 Steps involved in it

Step: 1

The error that exists in the given create statement is that comma is missin... 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_2

Step: 3

blur-text-image_3

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

Elementary Statistics

Authors: Neil A. Weiss

8th Edition

321691237, 978-0321691231

More Books

Students also viewed these Databases questions

Question

Explain the necessity for service process redesign.

Answered: 1 week ago

Question

Solve y" + y = 1 - t 2 / 2 ? if 0 Answered: 1 week ago

Answered: 1 week ago

Question

Please help me evaluate this integral. 8 2 2 v - v

Answered: 1 week ago