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

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 3RP
icon
Related questions
Question

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

Customer
Number
Name
Address
Number_of_rentals Bonus
Date
ТАРЕ
Code
Purchase_date
Times_rented
C_Number
M_Number
MOVIE
Number
Title
Year
Туре
Critic_rating Nominations Awards_won D_Number
DIRECTOR
Name
Number
Year_of_birth
Year_of_death
STAR
Number
Name
Birthplace
Year_of_birth
Year_of_death
PLAYED_IN
S_number
M_number
Role
Transcribed Image Text:Customer Number Name Address Number_of_rentals Bonus Date ТАРЕ Code Purchase_date Times_rented C_Number M_Number MOVIE Number Title Year Туре Critic_rating Nominations Awards_won D_Number DIRECTOR Name Number Year_of_birth Year_of_death STAR Number Name Birthplace Year_of_birth Year_of_death PLAYED_IN S_number M_number Role
Date
Address
Year of_death
Purchase_dote
Number_of_rentals
Name
Year of_eth
Code
Times_rented
Number
Bonus
Birthplace
TAPE
RENTED_TO
CUSTOMER
Name
Number
STAR
CONTAINS
Name
N
Nmber
Role
PLAYED IN
MOVIE
DIRECTED_BY
DIRECTOR
Year of birth
Number
Awards won
Year of death
Tle
Nominations
Year
Critics rating
Туре
Transcribed Image Text:Date Address Year of_death Purchase_dote Number_of_rentals Name Year of_eth Code Times_rented Number Bonus Birthplace TAPE RENTED_TO CUSTOMER Name Number STAR CONTAINS Name N Nmber Role PLAYED IN MOVIE DIRECTED_BY DIRECTOR Year of birth Number Awards won Year of death Tle Nominations Year Critics rating Туре
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
SQL Query
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.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage