Question: D . Creating Indexes ( 5 points ) 1 . Create an index on the last name column of the Rental Customers table. E .
D Creating Indexes points
Create an index on the last name column of the Rental Customers table.
E Creating Synonyms points
Create a synonym called TU for the TITLEUNAVAIL view.
F Writing Queries points
Note: You may need to write INSERT statements to add more data to your tables.
Read each of the questions listed in the left column of the table below.
Write the answer to your question andor the required SQL statement in the corresponding cell in the right column that answers the question. Test your statement to confirm the results before submitting.
begintabularll
hline a To determine the popularity of the movies in the
OracleFlix inventory, write a query to display each
movie and the number of times it was rented. Sort
your results by the count of rentals in descending
order.
hline b OracleFlix will be mailing coupons to the homes of
frequent renters. They are printing labels for each
customer. Write a query to identify the frequent
renters ie customers that have rented more
than once Your results should include the
customers' first and last name concatenated,
address, city, and state. Also include columns
name length and address length that display
the length of the concatenation of the first and
last name and the length of the address. Sort your
results by the customers' last names.
endtabular
to identify movies with a release date of at least years ago ie or before Write a query that identifies these movies. Your results should include the release date and the movie title. Sort your results by release date.
G Creating Queries points
You have ideas for inventory and rentals reports that could be helpful to the leadership of the OracleFlix company. Develop the queries to support the reports you plan to propose and explain how they would be helpful to leadership.
Note: You may need to write INSERT statements to add more data to your tables.
Your query should include the SQL concepts, keywords, andor clauses in column Test your statement to confirm the results before submitting and place your final query in the column
Describe the output of your query as if you were presenting it to a client eg what does it mean, how would it be useful to them in column
Save this document once you have added your answers and uploaded it as part of your submission.
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
