Using MySQL workbench to create a database with six tables. You need to set up primary key and foreign key each table. Make two lines of contents for each table. The export as a SQL file. In Tape table, set foreign key C_number with on update cascade, on delete set null. Set foreign key M_number with on update cascade and on delete cascade. Remember don’t set customer number and movie number as required (not null) if you want to set them as null when needed. In Movie table, set the foreign key D_number with on update cascade, on delete set null In Played_In, set two foreign keys with on update cascade and on delete cascade. Add one row of data in each table. Export the SQL file
Using MySQL workbench to create a database with six tables. You need to set up primary key and foreign key each table. Make two lines of contents for each table. The export as a SQL file. In Tape table, set foreign key C_number with on update cascade, on delete set null. Set foreign key M_number with on update cascade and on delete cascade. Remember don’t set customer number and movie number as required (not null) if you want to set them as null when needed. In Movie table, set the foreign key D_number with on update cascade, on delete set null In Played_In, set two foreign keys with on update cascade and on delete cascade. Add one row of data in each table. Export the SQL file
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
Related questions
Question
Using MySQL workbench to create a
foreign key each table. Make two lines of contents for each table. The export as a SQL file.
In Tape table, set foreign key C_number with on update cascade, on delete set null. Set foreign key
M_number with on update cascade and on delete cascade. Remember don’t set customer number and
movie number as required (not null) if you want to set them as null when needed.
In Movie table, set the foreign key D_number with on update cascade, on delete set null
In Played_In, set two foreign keys with on update cascade and on delete cascade.
Add one row of data in each table.
Export the SQL file
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Fundamentals of Information Systems
Computer Science
ISBN:
9781337097536
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Principles of Information Systems (MindTap Course…
Computer Science
ISBN:
9781285867168
Author:
Ralph Stair, George Reynolds
Publisher:
Cengage Learning