Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
