Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What are two advantages of using views? p Flag question: Question 2 Question 2 1 pts 2 . Select everything from the movies view that
What are two advantages of using views?
p
Flag question: Question
Question pts
Select everything from the movies view that we created in class.
Screen Shot at PMpng
p
Flag question: Question
Question pts
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.
Screen Shot at PMpng
p
Flag question: Question
Question pts
Using the view from # show each genre with its avgrating.
Picturepng
p
Flag question: Question
Question pts
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
Screenshot png
p
Flag question: Question
Question pts
Show all directors who have not directed any dramas.
Picturepng
p
Flag question: Question
Question pts
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