Display the number of seats that were in the cinema

Assignment Help Database Management System
Reference no: EM13833318

Introduction to Database Design

You will be working with a set of tables for a cinema.

To access these tables in sql create the following synonyms:

SQL CREATE SYNONYM CINEMA FOR ARTHURA.CINEMA; SQL CREATE SYNONYM STAFF FOR ARTHURA.STAFF; SQL CREATE SYNONYM MOVIE FOR ARTHURA.MOVIE;

SQL CREATE SYNONYM SCREENING FOR ARTHURA.SCREENING;

You are to prepare 15 SQL query statements that will provide answers to the following 15 requests for information. You must submit the syntax of the queries themselves, not all the output (expecting 2 or 3 pages only).

1. A list of all screenings that screened on the 18th of April, 2015.

Display the number of seats that were in the cinema and the name of the movie.

2. A list of all screenings of PG movies during the month of January, 2015.

Display the screening date, the name of the movie and the name of the supervisor.

3. List all the screenings where Mario Baratto (staff id: 106) was the supervisor. Include the movie name, classification, camera operator name and the cinema size.

4. Display a list of each staff name and their supervisor's name.

5. Give a breakdown of how many screenings there have been for each screen size (using the screensize field in cinema).

6. Show the number of screenings that were scheduled for each month of 2015.

7. Create a view that shows a breakdown of movies by classification, ie. How many movies are ‘PG', how many are ‘M' etc.

8. Using the view created for query 7, write a query to display which classification has the lowest number of movies.

9. Create a view that gives a breakdown of the number of screenings there have been for each movie. Display the movie name as well as the movie number. You do not need to show movies that have never been screened.

10. Using the view in create for question 9, write a query to display which movie has been screened the most times.

11. List details of the oldest and youngest members of staff, show the full name of staff and their sex.

12. Show movies that have never been screened.

13. Show the number of screenings there have been for each cinema.

Include any cinemas that have had no screenings, if any.

14. List staff that have never worked as supervisors or camera operators.

15. Create your own query. It must include a nested query. Submit the following:

a. question your query is answering

b. the SQL query.

Reference no: EM13833318

Questions Cloud

Consider a two-commodity economy : Consider a two-commodity economy with 400 identical consumers. Each has the utilityfunction U = x1x2 and each has an income of 20. The x1-commodity is produced by 100price-taking profit-maximizing firms. Forty of them have the total cost function C(q..
What are value stocks and what are growth stocks : What are value stocks. What are growth stocks. What is the reasoning that investors use for purchasing value or growth stocks
Why the long-run aggregate-supply curve is vertical : Explain the following : a) Why the long-run aggregate-supply curve is vertical. b) Three theories for why the short-run aggregate-supply curve is upward-sloping.
Demand curve and represent it inequation form : Continuing from question 1, suppose there is a newcomer (indexed by C) to this (verysmall!) community with the following demand curve for water,  P = 30 - 2q
Display the number of seats that were in the cinema : Display the number of seats that were in the cinema and the name of the movie. A list of all screenings of PG movies during the month of January, 2015.
Consumers bundle includes two normal goods : A consumer's bundle includes two normal goods, good X and good Y. According to the income effect, a(n) ______ in the price of good X or ______ in the price of good Y will cause the consumer to buy less of good X.
Desirable characteristics of focus group moderators : What are some of the desirable characteristics of focus group moderators? How might a researcher go about ensuring that potential moderators are appropriate for a specific project, over and above general qualifications
How accounting professionals have benefitted from sox use : "Sarbanes-Oxley Act (SOX)" Please respond to the following: From the e-Activity, recommend how the SOX framework can ensure reliable and complete financial information and how accounting professionals have benefitted from its use. Provide support for..
What will be the monthly payment-assume no fees in mortgage : Beth and Bob Salerno are looking at refinancing their home loan of $250,000 and have been quoted 3.75% NAR for a 30 year loan compounded monthly. What will be the remaining balance after 10 years of payments? What will be the monthly payment (assume ..

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