Question: Modify and enhance a Database Project. Movies Table: Column Name Data Type Constraints movie_id INT PRIMARY KEY title VARCHAR NOT NULL release_year INT NOT NULL

Modify and enhance a Database Project. 

Movies Table:

Column NameData TypeConstraints
movie_idINTPRIMARY KEY
titleVARCHARNOT NULL
release_yearINTNOT NULL
runtimeINTNOT NULL
ratingVARCHARNOT NULL

 

Actors Table:

Column NameData TypeConstraints
actor_idINTPRIMARY KEY
nameVARCHARNOT NULL
birthdateDATENOT NULL

 

Directors Table:

Column NameData TypeConstraints
director_idINTPRIMARY KEY
nameVARCHARNOT NULL
birthdateDATENOT NULL

 

Producers Table:

Column NameData TypeConstraints
producer_idINTPRIMARY KEY
nameVARCHARNOT NULL
companyVARCHARNOT NULL

 

Characters Table:

Column NameData TypeConstraints
character_idINTPRIMARY KEY
nameVARCHARNOT NULL
actor_idINTFOREIGN KEY REFERENCES Actors(actor_id)

 

Genres Table:

Column NameData TypeConstraints
genre_idINTPRIMARY KEY
nameVARCHARNOT NULL

 

Reviews Table:

Column NameData TypeConstraints
review_idINTPRIMARY KEY
reviewerVARCHARNOT NULL
ratingINTNOT NULL
movie_idINTFOREIGN KEY REFERENCES Movies(movie_id)

 

Songs Table:

Column NameData TypeConstraints
song_idINTPRIMARY KEY
titleVARCHARNOT NULL
artistVARCHARNOT NULL

 

MovieActors Linking Table:

Column NameData TypeConstraints
movie_idINTFOREIGN KEY REFERENCES Movies(movie_id)
actor_idINTFOREIGN KEY REFERENCES Actors(actor_id)

 

MovieDirectors Linking Table:

Column NameData TypeConstraints
movie_idINTFOREIGN KEY REFERENCES Movies(movie_id)
director_idINTFOREIGN KEY REFERENCES Directors(director_id)

 

MovieProducers Linking Table:

Column NameData TypeConstraints
movie_idINTFOREIGN KEY REFERENCES Movies(movie_id)
producer_idINTFOREIGN KEY REFERENCES Producers(producer_id)

 

MovieGenres Linking Table:

Column NameData TypeConstraints
movie_idINTFOREIGN KEY REFERENCES Movies(movie_id)
genre_idINTFOREIGN KEY REFERENCES Genres(genre_id)

 

MovieCharacters Linking Table:

Column NameData TypeConstraints
movie_idINTFOREIGN KEY REFERENCES Movies(movie_id)
character_idINTFOREIGN KEY REFERENCES Characters(character_id

 

1. Database must be able to track the following information about movies: Title, release date, runtime, rating (PG etc...), cast and crew (actors, directors etc...) characters, songs and reviews. 

2. The database design must conform to correct relational database design as outlined in Chapter 10, and must be normalized to the 3rd normal form. 

3. Provide a detailed EER diagram created using the design tool in MySQL Workbench as demonstrated in class and shown in Chapter 10 

4. Apply appropriate constraints in your table definitions. This includes, column constraints such as "not null", primary key constraints, and foreign key constraints as described in chapter 11. 

5. Create the database once designed using Workbench (use the "forward engineer" option from the EER diagram). 

6. Once the Movie DB is created, you must populate all tables with data for at least two movies. The cast and crew details do not have to be complete (i.e., you don't have to list every person involved in the movie), but you need data for all tables 

7. Test your DB design by writing the SQL to find all the data for a particular movie. This means you would retrieve the data required to list the specifics of the movie (release date, runtime etc...) the cast and crew, the characters, songs and reviews. It is ok to have multiple SELECT statements for this, but use joins where appropriate. Once you have working SELECT statements, save them in an external Notepad++ file

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Creating a detailed EER diagram table definitions and SQL statements is a complex task that involves multiple steps Ill provide you with a simplified ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!