Determine airports with late flights to toronto-database

Assignment Help Database Management System
Reference no: EM1372165

The database schema is as follows:

AIRPORT(city, country, runways); (the last attribute is the number of runways at an airport)
FLIGHT (flightID, day, depart_city, arrive_city, depart_time, arrive_time, plane_type)
PLANE(plane_type, capacity)

Write following queries in SQL and relational algebra:

1) Find the airports with a direct flight to Toronto
2) Find airports with late flights to Toronto on a big plane. "Late" means departing after 9:00pm; "big" means with capacity 150 passengers or more
3) Find cities from which one can fly to Toronto with one change of planes, and using the same type of the aircraft for both legs of the trip.
Write following queries in SQL and relational algebra.
1) Find flight numbers of flights that use a small (capacity less than 50) plane
2) Find all airports with at least 3 runways that have 2 or more flights to Paris a day, or with capacity at least 250.
Assumption: (flightId, day) pairs are unique (i.e., there are no two flights with the same flightId on the same day).

Reference no: EM1372165

Questions Cloud

Write a counter-culture essay : Write a working thesis that defines the counterculture as distinct from the dominant or mainstream culture of its time and find a scholarly article that analyzes your proposed counterculture, provide its MLA citation, and summarize its thesis.
Identifying the level of output : Given output and Total Cost information in the Table below, Complete the following columns: Fixed Costs, marginal Cost, Variable cost, Average Total Cost columns.
Popular literature-harry potter series : Recognize the literary production you chose to focus on. Provide the brief overview of what the piece is about, the author's background and how the piece fits or does not fit with other literature of that genre.
What type of costing method would this auto body repair : each job this auto body repair shop handles is a special order job. What type of costing method would this auto body repair shop most likely use.
Determine airports with late flights to toronto-database : Determine airports with late flights to Toronto on a big plane. "Late" means departing after 9:00pm; "big" means with capacity 150 passengers or more
Determine the optimal price of product : After a 10 percent price discount, a company found that its weekly sales increased by 30 percent. If the marginal cost (MC) of this product is $40 each, determine the optimal price for this product?
Estimating profit : Your supervisor recently instituted a plan that encourages her managers to share non private demographic characteristics voluntarily provided by those who buy your company's final product.
How can a firm gain by reducing competition : Price higher in monopoly market. Bigger quantity in perfect competition. How can a firm gain by reducing competition.
How did this impact competition in many markets : f P falls below AC, what is result for firm? Firm loses money 16. In late-19th century, both firms and markets expanded. How did this impact competition in many markets.

Reviews

Write a Review

Database Management System Questions & Answers

  Practice on topic of normalization

Practice on topic of Normalization

  Translation from erd to the relational model

Complete (i.e., reverse engineering) ER diagram below such that 4 relation schemas above are exactly result of a translation from the ERD to the relational model.

  Choose a data storage problem of storing data in database

You should choose a data storage problem of your interest and identify the different pieces of data that should be stored in database.

  Specify the foreign keys for schema

First, specify the foreign keys for this schema, stating any assumptions you make. Next, populate the relations with a few example tuples.

  Explain the problems associated with data redundancy

Assignment 5: Logical Design, Part II, Explain the problems associated with data redundancy as it pertains to effectively using information for reporting and analysis.

  Prepare the relational schema for database

Prepare the relational schema for database

  Represent data for sales of individual stores

Explain how you will visually represent the data for the sales of the individual stores and for the time period shown. You want to show the change in sales for each store over time for the past three years.

  Key value of fourth index record on top level

What is the key value of the 4th index record on the top level, assuming each index record points to the record with the highest key value in a block of the next level down?

  Create data warehouse for electronics store chain

Create a data warehouse for electronics store chain. Chain has 20 stores in 5 cities. Each store has different sections comprising computers, DVDs, TVs, audio, home appliances etc.

  Essay on data mining in warehouse architectures

Course: data mining. Require a 7 page essay on subjects: Warehouse Architectures: the paper requires to contain information about centralized, federated, and tiered data warehouse.

  Write the application for university admissions office

Write the application for university admissions office. Prompt user for a student's High School Grade Point and an admission test score.

  Write a recursive sql query

MCIS 630 Database Systems: -  Write a recursive SQL query that outputs the names of all subparts of the part with part-id “P- 100”.

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