Answered step by step
Verified Expert Solution
Link Copied!

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 2
Question 21 pts
2. Select everything from the movies view that we created in class.
Screen Shot 2022-07-01 at 4.07.31 PM.png
p
Flag question: Question 3
Question 35 pts
3. Create a new view that shows the same information as #2 EXCEPT it should show the average rating of each movie. Use the view from #2 in the FROM clause. Name the average rating column AvgRating.
Screen Shot 2022-07-06 at 2.20.14 PM.png
p
Flag question: Question 4
Question 45 pts
4. Using the view from #3, show each genre with its avgrating.
Picture1-3.png
p
Flag question: Question 5
Question 55 pts
5. Show all movies with a release year between 1970 and 1990 where the movie's genre has an average rating greater than 7.0. Only show the movie id, title, genre, and year columns
Screenshot 2022-10-26013637.png
p
Flag question: Question 6
Question 65 pts
6. Show all directors who have not directed any dramas.
Picture1-5.png
p
Flag question: Question 7
Question 73 pts
7. Assume there is a payment history table with a column called payment_type 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 employee_id, first_name, last_name
FROM employees e1
WHERE NOT EXISTS (SELECT ph.lastname
FROM payment_history ph
WHERE ph.emp_id = e1.employee_id
AND ph.payment_type =award)

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

Database Systems Introduction To Databases And Data Warehouses

Authors: Nenad Jukic, Susan Vrbsky, Svetlozar Nestorov

1st Edition

1943153191, 978-1943153190

More Books

Students also viewed these Databases questions

Question

code class = "asciimath" > Balancing equasions 1 x ( 4 x + 5 x )

Answered: 1 week ago