Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedimage text in transcribedimage text in transcribed

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

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

C++ Database Development

Authors: Al Stevens

1st Edition

1558283579, 978-1558283572

Students also viewed these Databases questions

Question

Prepare and properly label figures and tables for written reports.

Answered: 1 week ago