What is wrong with my code? See area circled in red SQL Fiddle MySQL 5.6 Build Schema
Fantastic news! We've Found the answer you've been seeking!
Question:
What is wrong with my code? See area circled in red
Transcribed Image Text:
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 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
Expert Answer:
Answer rating: 100% (QA)
The error that exists in the given create statement is that comma is missin... View the full answer
Related Book For
Posted Date:
Students also viewed these databases questions
-
What are some barriers someone with cerebral palsy would face at the movie theaters?
-
In 2022, Keith rode in a vanpool to work. Keith's employer paid Keith $5,000 for Keith's participation in the vanpool. The vanpool was a qualified transportation fringe benefit provided by Keith's...
-
Describe what actions are performed when carrying out an account maintenance function?
-
The probability that fewer than 35 people support theprivatization of Social Security A discrete random variable is given. Assume the probability of the random variable will be approximated using the...
-
Weightless gate AB is 5 ft wide into the paper and opens to let fresh water out when the ocean tide is falling. The hinge at A is 2 ft above the freshwater level. Find h when the gate opens. Tide...
-
The following information was obtained from the records of Shae, Inc.: Merchandise inventory....................................... $264,000 Notes payable (long-term)...
-
A Pelton wheel vane directs a horizontal, circular crosssectional jet of water symmetrically as indicated in Fig. P5.70 and Video V5.6. The jet leaves the nozzle with a velocity of \(100 \mathrm{ft}...
-
Buhler Industries is a farm implement manufacturer. Management is currently evaluating a proposal to build a plant that will manufacture lightweight tractors. Buhler plans to use a cost of capital of...
-
A teaching assistant performs an experiment using an aluminum container, with a mass of 0 . 1 5 0 kg , that contains 0 . 2 8 5 kg of water, all initially at 3 0 . 0 C . The teaching assistant then...
-
John has created an incredibly successful wine operation in the Northeast. All 5 are in a separate S-Corporation with all the stock owned by the parent Company Petosa Vineyards Inc, also an...
-
Design, using an IPO chart, a flow chart, pseudocode, or any reasonable combination of these techniques, a module called checkGuess that accepts 2 string inputs. The first input will be the user's...
-
Current Yield-to-Maturity on an American corporate 5 year Euro bond is 3%. This pays interestannually, at 5%.You've read it looks interesting. It will maturity at par, equal to USD $1,000. Calculate...
-
3. (40 points) Write Verilog code to describe the multiplexer circuit below as a module using if-else statement. Please note that Verilog requires that procedural statements be contained inside an...
-
The average threshold of dark-adapted (scotopic) vision is 4.00 x 10-11 W/m at a central wavelength of 500 nm. If light with this intensity and wavelength enters the eye and the pupil is open to its...
-
Borden has a $26 million liability on its 2000 balance sheet for "probable environmental remediation and restoration." But the company says actual remediation and restoration costs could be up to $16...
-
(20 points) A system has three input buttons labeled 1, 2, and 3. The buttons can be pressed individually, or multiple buttons can be pressed at once. In this problem, you will design a digital...
-
Consider the graph of . 5 4 3 2 1 y + 12 3 4 5 6 7 +X f'(8.5) < f'(3.5) f'(8.5) < f'(2.5) f'(7.5) = f'(2.5) f'(8.5) > f'(6.5) '(8.5) > '(3.5) f'(6.5) = f'(8.5) f'(8.5) < f'(6.5) 89 Determine the...
-
suppose a nickel-contaminated soil 15 cm deep contained 800 mg/kg Ni, Vegetation was planted to remove the nickel by phytoremediation. The above-ground plant parts average 1% Ni on a dry-weight bas...
-
x-bar = 20, n = 24, = 4, H0: = 22, Ha: 22 We have provided a sample mean, sample size, and population standard deviation. In each case, use the one-mean z-test to perform the required hypothesis...
-
x1 = 10, n1 = 20, x2 = 18, n2 = 30; 80% confidence interval a. Use the two-proportions plus-four z-interval procedure as discussed on page 467 to find the required confidence interval for the...
-
The A. C. Nielsen Company collects data on the TV viewing habits of Americans and publishes the information in Nielsen Report on Television. Suppose that you want to use a paired sample to decide...
-
Harry wants to contribute either \($6,500\) (BT\($)\) to a traditional deductible IRA or \($6,500\) (AT\($)\) to a Roth IRA. His current tax rate is 30% for ordinary income and 15% for capital gains....
-
The XYZ Partnership reports the following items during 2022: Calculate ordinary income (or loss) by completing page 1 of Form 1065, and complete Schedule K (Partners Shares of Income, Credits,...
-
Rita, a calendar year taxpayer, is an employee of the RST Partnership, which has a June 30 year-end. The partnership pays Rita a salary of 2,500 per month for the period January 1 through June 30,...
Study smarter with the SolutionInn App