What are the special features for the film alien center

Assignment Help PL-SQL Programming
Reference no: EM131880615

Assignment: SQL Out - Getting Data out of the Database

For this assignment, you will be working with the same movie rental database as your in-class exercise (Moviedb). The schema is also the same, so you can use the one provided for the in-class exercise as a guide.

You will writeSQL query that would providethe answers to the questions on the next pages. Some of the questions can be answered by querying one table; others will require joining multiple tables to get the answer.

Guidelines

• You must include your name at the top of the document.
• You must include both the query and a screenshot of the output.

If you do not follow these instructions, your assignment will be counted late.

Evaluation

Your submission will be graded using the followingfactor:

1) A correctly formed SQL query that answers the question asked.
2) The correctness of the output of the query.

Questions

1. What is the rental rate and replacement cost for the film "Samurai Lion"?

Query:

Output:

2. What are the special features for the film "Alien Center"?

Query:

Output:

3. What are the maximum, minimum, average and total length of films?

Query:

Output:

4. Which country has the most cities in the database?

Query:

Output:

5. Which city has the most customers in the database?

Query:

Output:

6. What are the most popular last names among the actors in the database?

Query:

Output:

7. Which staff processed the most rental in the database?

Query:

Output:

8. Which movies are the least expensive to rent (on average) with regard to rating (e.g., G, R, PG)?

Query:

Output:

9. How many R movies mention a ‘Robot' in their description?(Hint: use WHERE...LIKE with a wildcard. Remember, %dog% will match any value containing "dog")

Query:

Output:

10. Who were the stars of the movie "King Evolution"?

Query:

Output:

11. What is the longest PG movie in English? And how long is it?

(Hint: Don't use the MAX function in the SELECT statement. It will give you the wrong answer.)

Query:

Output:

12. Who are the actorshave ‘Matt' in his first name and starred in movies in English?

Query:

Output:

13. Whohas rented the least movies? How many movies did he rent?

Query:

Output:

14. How many payments were processed on June 15, 2005? What was the total amount of payment on that day?

Query:

Output:

15. Which film attracted the most rental revenue? How much did that film generate in payment?

Query:

Output:

16. What was the longest movie starring Ben Harris? What's the movie length?

(Hint: Don't use the MAX function in the SELECT statement. It might give you the wrong answer.)

Query:

Output:

Attachment:- Movie-Rental-Schema.rar

Reference no: EM131880615

Questions Cloud

Implementation of a web portal application : The first step will be the implementation of a Web Portal application - implemented a Commodity Trading and Risk Management System
Experience that out of twenty demonstrations : A door-to-door sales person for a Household appliance has learned from her past experience that out of twenty demonstrations of her appliance
Tama investing the inheritance into managed funds : What would be the benefits of Tama investing the inheritance into managed funds? Identify two (2) of the benefits.
Estimate the mean length the machine : The company wants to estimate the mean length the machine is cutting the plastic with in 0.25 inch. Determine the minimum sample size required to construct
What are the special features for the film alien center : What are the special features for the film Alien Center? Which movies are the least expensive to rent (on average) with regard to rating (e.g., G, R, PG)?
Prepare a statement of cash flows : Prepare a Statement of Cash Flows and a Ratio Analysis for the financial statements of Global Conglomerate Corp
How to manage your startup finances from day one : Please write a summary/report about "How to manage your startup’s finances from day one".
Discuss three different theories for the teachers : Discuss three different theories (cognitive, behavior, and social) for teachers to integrate when designing instruction.
Identify the null hypothesis and alternative hypothesis : (a) Identify the null hypothesis and alternative hypothesis. (b) Determine the test statistic. Show all work; writing the correct test statistic.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Create a database model

Create a database model and Submit the table creation statements for the Database Model.

  Write pl-sql procedures and functions

Write PL/SQL procedures and functions to populate and query that database

  Sql questions

Write a query to display using the employees table the EMPLOYEE_ID, FIRST_NAME, LAST_NAME and HIRE_DATE of every employee who was hired after to 1 January, 1995.

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Write sql queries

Write a query to display the last name, department number, and salary of any employee whose department number and salary both match the department number and salary of any employee who earns a commission.

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

  Write down name of actors in ascending order

Write down actors (or actress, your choice, but not both) who have won at least two (2) Academy Awards for best actor/actress. Provide the actor name, movie title & year. Order the result by actor name."

  What is an sql injection attack

What is an SQL injection attack? Explain how it works, and what precautions must be taken to prevent SQL injection attacks.What are two advantages of encrypting data stored in the database?

  Determine resonant frequency in series rlc resonant circuit

Given the series RLC resonant circuit in the figure, operating at variable frequency, determine: The resonant frequency ω o ,  The circuit’s quality factor Q , The cut-off frequencies, f 1  & f 2  and the bandwidth BW

  Query that uses cube operator to return lineitemsum

Write summary query which uses CUBE operator to return LineItemSum (which is the sum of InvoiceLineItemAmount) group by Account(an alias for AccountDesciption).

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd