Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Problem 7 (24 points) Consider the following ACTORS, FILMS and ACTEDIN relations for this problem. The Primary Keys of the relations are underlined. Foreign Key

Problem 7 (24 points)

Consider the following ACTORS, FILMS and ACTEDIN relations for this problem. The Primary Keys of the relations are underlined. Foreign Key Constraints are represented by arrows.

image text in transcribed

(c) find all the Actors who acted in at least one film in which Clint Eastwood has also acted. Retrieve First and Last names of these actors. (Note: the result list should not include Clint Eastwood).

Answer:

II. Implement the following queries using SQL.

(a) retrieve all the character names being acted in the film The Godfather II.

Answer:

(b) find all the actors who had acted in more than two(2) films. For each such actor, retrieve his/her First Name, Last Name, and the number of films (s)he had acted in.

Answer:

(c) retrieve the total number of prices the films had received in which the actor Robert De Niro acted.

Answer:

I. Implement the following queries using the Relational Algebra.

(a) retrieve First and Last Names of all the Actors who are 70 years or older as of today.

Answer:

(b) find all the Actors who played the role(character) of Frank Costello. For each such actor retrieve his/her First Name, his/her Last Name, and the Film Title in which (s)he acted as the role(character) of Frank Costello.

Answer:

(c) find all the Actors who acted in at least one film in which Clint Eastwood has also acted. Retrieve First and Last names of these actors. (Note: the result list should not include Clint Eastwood).

Answer:

II. Implement the following queries using SQL.

(a) retrieve all the character names being acted in the film The Godfather II.

Answer:

(b) find all the actors who had acted in more than two(2) films. For each such actor, retrieve his/her First Name, Last Name, and the number of films (s)he had acted in.

Answer:

(c) retrieve the total number of prices the films had received in which the actor Robert De Niro acted.

Answer:

Consider the following ACTORS, FILMS and ACTEDIN relations for this problem. The Primary Keys of the relations are underlined. Foreign Key Constraints are represented by arrows. ACTORS (SSNo, FName, LName, YearOfBirth, Gender) FILMS ( FilmNo, FilmTitle, YearOfProduction, NumberOfPrices, Lengthin Mins) ACTEDIN ( SSNo, FilmNo, Character ) 1. Implement the following queries using the Relational Algebra. (a) retrieve First and Last Names of all the Actors who are 70 years or older as of today. Answer: (b) find all the Actors who played the role(character) of 'Frank Costello'. For each such actor retrieve his/her First Name, his/her Last Name, and the Film Title in which (s)he acted as the role(character) of 'Frank Costello

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

Database Concepts

Authors: David Kroenke, David J. Auer

3rd Edition

0131986252, 978-0131986251

More Books

Students also viewed these Databases questions

Question

Likes confrontation or avoids it?

Answered: 1 week ago

Question

Use of assessments to determine trainees learning styles.

Answered: 1 week ago

Question

7. Discuss the advantages of embedded learning.

Answered: 1 week ago