Answered step by step
Verified Expert Solution
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. ACTORS ( SSNo, FName, LName, YearOfBirth, Gender) FILMS ( Film No, FilmTitle, YearOfProduction, NumberOfPrices, Lengthin Mins ) ACTEDIN ( SSNo, Film No, 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'. 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started