Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 : Use aggregate functions and GROUP BY to do the following: a) Find a list of genres and the average length of a

image text in transcribed

Question 1 : Use aggregate functions and GROUP BY to do the following: a) Find a list of genres and the average length of a Movie in each genre [output] MOVIEGENRE AVERAGE_GENRE_LENGTH Comedy | 132.0000 Drama | 131.7143 Film Noir | 114.5000 Horror | 116.5000 Samurai | 207.0000 Suspense | 114.0000 b) Find a list of directors, the number of Movies by that director, and the average length for their Movies [output] DIRID TOTAL_MOVIES AVG_LENGTH 1 | 2 | 114.0000 23115.0000 33127.3333 4 | 2 | 158.0000 5 | 2 | 121.0000 62159.5000 7 | 1 | 119.0000 c) Find a list of directors, the number of Movies by that director, and the average length for their Movies, but only including directors that have more than 1 Movie [output] DIRID TOTAL_MOVIES AVG_LENGTH 1 | 2 | 114.0000 23115.0000 33127.3333 42158.0000 5 | 2 | 121.0000 6 | 2 | 159.5000

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_2

Step: 3

blur-text-image_3

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 Design Application And Administration

Authors: Michael Mannino, Michael V. Mannino

2nd Edition

0072880678, 9780072880670

More Books

Students also viewed these Databases questions