Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

As a hobby, Lee gathers and organizes information on movies, directors, and movie stars. For herreference purpose, she assigns an identification number for a movie

As a hobby, Lee gathers and organizes information on movies, directors, and movie stars. For herreference purpose, she assigns an identification number for a movie existing in the database. Inaddition to this number, she keeps the title of the movie, the type of movie (comedy, drama, etc.),the year it was produced, the rating of MPAA (Motion Picture Association of America), the numberof Academy Award nominations it received, and the number of Academy Awards it won.Similarly, she assigns an identification number to a new director. She also records the director'sname, the year in which he or she was born, and, if appropriate, the year in which he or she died.Actors and actresses are likewise assigned identification numbers when they are added to thedatabase. Other information for a movie star include the star's name, birthplace, the year born, and,again if appropriate, the year died.The relational schema for the above-mentioned application consists of four relations:Movie(MNumber, Title, Year, Type, Rating, Nomination#, Award#, DNumber),Director(DNumber, Name, YearBorn, YearDied),Star(SNumber, Name, Brithplace, YearBorn, YearDied), andMovieStar(MNumber, SNumber).Specify the following queries in the SQL language:1. List the names (i.e., Name) and numbers (i.e., DNumber) of all directors who have directed atleast one comedy.2. List the movie number (i.e., MNumber) and title for all movies not directed by Woody Allenthat were nominated for more Academy Awards than all movies directed by Woody Allen.3. For each director, list the director's number and the total number of awards won by comedies(movies whose Type is Comedy) he or she has directed.

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

Step: 3

blur-text-image

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

Graph Databases

Authors: Ian Robinson, Jim Webber, Emil Eifrem

1st Edition

1449356265, 978-1449356262

More Books

Students also viewed these Databases questions

Question

=+4. Prepare an unadjusted trial balance as of April 30.

Answered: 1 week ago

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago