Answered step by step
Verified Expert Solution
Question
1 Approved Answer
People have the following ER model Movies have the following ER model Aliases for movies have the following ER model The above entities are linked
People have the following ER model Movies have the following ER model Aliases for movies have the following ER model The above entities are linked together as follows Which actor has the highest average rating in movies that they're known for? Task Write a SELECT statement that returns the name(s) of the actor(s). Notes - They must been known for at least two movies in which they worked as an 'actor ' (as per Principals. role ) and which have been rated; no one-hit wonders - The rating is for the movie, not the person who's known for the movie - If more than one actor has the same highest rating, return all of them, in alphabetical order - Cast average ratings values to NUMERIC (5,2) otherwise you may not match our solution. For example, avg (rating): : numeric (5,2) Sample output Elijah wood Ian McKellen (2 rows)
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