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

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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