Display all data from each of the tables in the moremovies

Assignment Help Database Management System
Reference no: EM13762410

Step 1:

Within SQL*Plus, list names of the tables that you have created whose name starts with MM (Hint: use data dictionary view USER_TABLES).

Step 2:

Use DESCRIBE (in short: DESC) command in SQL*Plus for each of these tables to show columns and their datatypes.

Step 3:

Use SELECT * command to display all data from each of the tables in the MoreMovies schema. Make sure that the LINESIZE and PAGESIZE have large enough values, and that you format columns so that the report looks good. You should end up with five queries and result sets.

Step 4:

Using the mm_movie and mm_movie_type tables, write a query that will list all movie categories together with the count of movies in each category. Give the column with the count in it a meaningful name such as IN STOCK.

Step 5:

Using the mm_movie and mm_rental tables, write a query that will list titles and checkout dates for all movies that were signed out by Wild Coyote (MEMBER_ID=13).

Step 6:

Using the same two tables used in Step 5, write an SQL sub-query that will list all movies (movie ids and titles) of all movies that have never been rented.

Step 7:

Using the mm_member and mm_rental tables, write a query that will list all members (member ID, first name, and last name) and the number of movies they have rented, for all members who have rented at least one movie. Order the result set so that it shows the largest number of movies rented as the first row.

Step 8:

Write a query that will display the largest number of movies rented by one member and that member's name. Give the output column a meaningful name such as MAXIMUM NUMBER.

Step 9:

Using the mm_member and mm_rental tables, write a query that will display member ID, last name, first name, and the number of movies rented for each member. Give the column with the number of movies rented a meaningful name such as NUMBER RENTED.

Step 10:

Using the mm_member, mm_movie and mm_rental tables, write the query that will prepare a report that shows who rented which movie. Usemember names (first and last) and movie title rather than the corresponding IDs. Order the report by member names, and for a single member by the movie titles.

Reference no: EM13762410

Questions Cloud

How is the imf view of the global economy : Explain how Stiglitz believes that the IMF has failed in its mission and that the failures are "not just accidental but the consequences of how it has understood its mission."
Write a program to input an double array : Write a program to input an double array, and then computes some simple statistics on that array. The program should have two user-defined methods to help you with the task.
Write paper on song for a dark girl and conversion of jews : Write a paper on Song for a Dark GirlWrite paper on Song for a Dark Girl and the Conversion of the Jews. How does this affect the impact of the poem?
Federal unemployment taxes : Westway Company pays Suzie Chan $2,550 per week. Assume Social Security is 6.2% on $110,100 and 1.45% for Medicare.
Display all data from each of the tables in the moremovies : Within SQL*Plus, list names of the tables that you have created whose name starts with MM (Hint: use data dictionary view USER_TABLES)
Describe chinas process of creative destruction : Explain how China provides an example of alternative strategies to those advocated by the Washington Consensus. To what extent did China use "shock therapy"? To what extent did it pursue the gradualist approach?
Importing and analyzing data for johnson equipment : Importing and Analyzing Data for Johnson Equipment-Johnson Equipment, the medium-sized laboratory equipment manufacturing company where you work, is in the process of acquiring Sloan Manufacturing, a smaller equipment /manufacturer in the same indu..
Viability of upgrading to windows : Provide a detailed upgrade plan for the organization, including the sales staff.
Shock therapy and rapid privatization in russia : Why were the IMF and U.S. Treasury stubbornly committed to shock therapy and rapid privatization in Russia? What was their political objective? What "imminent danger" worried them?

Reviews

Write a Review

Database Management System Questions & Answers

  Data mining

DATA MINING-Business and Management Scenario assignment-Data Warehouse Reports. This is Part Three of the three-part assignment. For this week, you will complete the following: Resource: Business and Management Scenario assignment, Document data ware..

  Create an update query to select all records in the tbl over

Create an update query to select all records in the tblOverPriced, decrease the Price field values by 10%, run and close the query.

  Develop a model using an excel spreadsheet

Develop a model using an Excel spreadsheet to project financial statements for Rama's Lawn Mowing -  find how many jobs per year would be required for Rama's company to break even; i.e., to achieve a net present value of  0.00.

  Produce a distributed data design for enterprise

Produce a distributed data design for this enterprise. Show data fragmentation/partitioning and replication for each regional database location. Indicate what attributes are in each fragment

  Find the single precision floating point representation

For each part of this problem, assume the Before values when the given Instruction is executed. Give the requested After values, Find the single precision floating point representation of the following numbers

  Execution of the SQL commands - Create Tables using SQL DDL

The appropriate SQL command which should be copied from your source code in MySQL and resultant tables, which must be screenshots to show the change due to the execution of the SQL commands

  Create a table having all combinations of ice cream

create a table having all combinations of Ice cream: chocolate, vanilla, coffee, strawberry.

  Show an alternative design using the general notations

Show an alternative design using the General notations for the attribute described in Problem 2 that uses only entity types (including weak entity types if needed) and relationship types.

  Optimistic concurrency control sets few locks on the data

Optimistic concurrency control sets few locks on the data in the database, lowering the isolation level that you use in an application. This allows more applications to run concurrently and potentially increases the throughput of the applications. Th..

  Fresh-mart grocery is a regional grocery chain that is

fresh-mart grocery is a regional grocery chain that is developing an information system to monitor inventory levels

  Summarize your paper by explain the database systems in

write a 600- to 700-word paper in which you do the following explain what database systems are and how they are used.

  Briefly explain the aries recovery algorithm

Briefly explain the ARIES recovery algorithm, including the main phases, main principles and key ideas behind the algorithm such as WAL protocol and checkpointing etc.

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