Answered step by step
Verified Expert Solution
Question
1 Approved Answer
3 . Create a new view that shows the same information as # 2 EXCEPT it should show the average rating of each movie. Use
Create a new view that shows the same information as # EXCEPT it should show the average rating of each movie. Use the view from # in the FROM clause. Name the average rating column AvgRating.
Using the view from # show each genre with its avgrating.
Show all movies with a release year between and where the movie's genre has an average rating greater than Only show the movie id title, genre, and year columns
Show all directors who have not directed any dramas.
Assume there is a payment history table with a column called paymenttype that indicates if a payment is regular salary, a bonus, or an award. What question does this correlated query answer? Begin your answer with "This query answers the question: who are the employees..."
SELECT employeeid firstname, lastname
FROM employees e
WHERE NOT EXISTS SELECT phlastname
FROM paymenthistory ph
WHERE phempid eemployeeid
AND phpaymenttype award
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