The data requirements are summarized as follows: Each movie is identified by title and year of release. Each movie has a length in minutes. Each has a production company, and each is classified under one or more genres (such as horror, action, drama, and so forth). Each movie has one or more directors and one or more actors appear in it. Each movie also has a plot outline. Finally, each movie has zero or more quotable quotes, each of which is spoken by a particular actor appearing in the movie. Actors are identified by name and date of birth and appear in one or more movies. Each actor has a role in the movie. Directors are also identified by name and date of birth and direct one or more movies. It is possible for a director to act in a movie (including one that he or she may also direct). Production companies are identified by name and each has an address. A production company produces one or more movies.

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter6: Managing Multiple Worksheets And Workbooks
Section: Chapter Questions
Problem 2.10CP
icon
Related questions
Question

The data requirements are summarized as follows:

  • Each movie is identified by title and year of release. Each movie has a length in minutes. Each has a production company, and each is classified under one or more genres (such as horror, action, drama, and so forth). Each movie has one or more directors and one or more actors appear in it. Each movie also has a plot outline. Finally, each movie has zero or more quotable quotes, each of which is spoken by a particular actor appearing in the movie.
  • Actors are identified by name and date of birth and appear in one or more movies. Each actor has a role in the movie.
  • Directors are also identified by name and date of birth and direct one or more movies. It is possible for a director to act in a movie (including one that he or she may also direct).
  • Production companies are identified by name and each has an address. A production company produces one or more movies.

Consider the database schema in 3NF for the “Movie” database obtained in above, Now write down queries in relational algebra for each of the following conditions.

  1. A query which extracts two attributes (using projection operator) from a single relation, based on at least one condition (using selection operator).
  2. A query which extracts two attributes from two relations, which are joined using Cartesian product operator. The rows must be filtered based on at least one condition (using selection operator).
  3. A query which extracts two attributes from two relations, which are joined using theta-join operator in relational algebra. The rows must be filtered based on at least one condition.
  4. A query which extracts three attributes from three relations, which are joined using theta-join operator in relational algebra. The rows must be filtered based on at least two conditions.
  5. A query which extracts two attributes from two relations, which are joined using left-outer-join operator in relational algebra. The rows must be filtered based on at least one condition.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Transaction Processing
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
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage