Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write the SQL queries for the tables created in Part a and Part b . i . Write a query to list all the videos

Write the SQL queries for the tables created in Part a and Part b.
i. Write a query to list all the videos where the cost of the video is between 50 and 75.
ii. Write a query to list the details of all customers last names that begin with the
letters Kne
iii. Write a query to list the customer id, first name, last name, state and total number
of videos borrowed by the customer.
iv. Write a query to list each customer first name, last name, the rented video name
and due date.
v. Write a query to create a view BorrowDetails for the query used in previous
question and also display the number of videos each customer has from the newly
created view

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions