Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

Already created primary keys, Need help with the foreign keys. See details below. 4 CREATE TABLE SELECT gives you the data definitions and data, but

Already created primary keys, Need help with the foreign keys. See details below.

image text in transcribedimage text in transcribed

4 CREATE TABLE SELECT gives you the data definitions and data, but no keys. So now you will need to ALTER TABLE statements to create keys as shown in the table below. The primary keys are the ones shown with the key icon on the original schema. VERY IMPORTANT- MySQL requires that a foreign key reference a primary key OR indexed attribute. My advice: create all of the PRIMARY KEYS first, then the foreign keys (or be very careful of the order in which your ALTER the tables. Foreign Key deletion should be handled [as specified] in the table. DO NOT specify any ON UPDATE handling

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

More Books

Students explore these related Databases questions