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

  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