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

  Determine the cartesian product of sets

Determine the Cartesian product (A X B) of the given pair of sets. A => Set of first letter of names of countries = A = { R, S, T } B => Set of numbers denoting Postal codes = B = { 0001, 1001}.

  Describe the benefits and current trends of data

write a six to eight 6-8 page paper in which youquestion 1. provide an executive overview that addresses the

  Mark the words as index entries behavior and favorable

Mark the following words in the document as index entries: behavior (four instances), favorable (five instances), and impression (eight instances).

  Identify the type of dependency

Identify the cardinality between teams and players and between teams and city.

  Assume that you have an array of baseball scores type

suppose that you have an array of baseball scores type integer called scores. the values in the array are ordered from

  Create a query using list of values match

Create a list the holds the student grade (A, A-, B+,..), modify the appropriate table to accept only the grades in the list(you need to explain why you selected the above table to record the student grade).

  Explain the speed of the search operation

Describe a mechanism to access the telephone customer records by telephone #. Assume that we have a huge data in hand, say a million records or so.

  Write an sql script

FOR QUESTIONS 1-10: Given the following table named DEPT, Write an SQL script for the following returned data

  Kinds of joins

It is not uncommon to have to access the data which reside in different tables, especially when formulating a report.

  Background adventure works cycles the fictitious company on

background adventure works cycles the fictitious company on which the adventureworks sample databases are based is a

  Which does not apply to the following relationship image

A primary key  can be computer generated. consists of one field only that uniquely identifies each record in a table. is a relationship between two or more tables. All of the above.

  1 create a function that returns the day of the week for a

1. create a function that returns the day of the week for a specified date.create or replace function

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