Find the aids of all aircraft that can be used on routes

Assignment Help Database Management System
Reference no: EM13934301

The following relations keep track of airline flight information: Flights(flno: integer, from: string, to: string, distance: integer, departs: time, arrives: time, price: integer) Aircraft(aid: integer, aname: string, cruisingrange: integer) Certified(eid: integer, aid: integer)

Employees(eid: integer, ename: string, salary: integer)

Note that the Employees relation describes pilots and other kinds of employees as well; every pilot is certified for some aircraft, and only pilots are certified to fly. Write each of the following queries in SQL.

1. Find the names of aircraft such that all pilots certified to operate them earn more than 80,000.

2. For each pilot who is certified for more than three aircraft, find the eid and the maximum cruisingrange of the aircraft that he (or she) is certified for.

3. Find the names of pilots whose salary is less than the price of the cheapest route from Los Angeles to Honolulu.

4. For all aircraft with cruisingrange over 1,000 miles, find the name of the aircraft and the average salary of all pilots certified for this aircraft.

5. Find the names of pilots certified for some Boeing aircraft.

6. Find the aids of all aircraft that can be used on routes from Los Angeles to Chicago.

7. Identify the routes that can be piloted by every pilot who makes more than $100,000.

8. Print the enames of pilots who can operate planes with cruisingrange greater than 3,000 miles, but are not certified on any Boeing aircraft.

9. A customer wants to travel from Madison to New York with no more than two changes of flight. List the choice of departure times from Madison if the customer wants to arrive in New York by 6 p.m.

10. Compute the difference between the average salary of a pilot and the average salary of all employees (including pilots).

11. Print the name and salary of every nonpilot whose salary is more than the average salary for pilots.

Reference no: EM13934301

Questions Cloud

Find names of all students who are enrolled in two classes : Find the names of all students who are enrolled in two classes that meet at the same time. Find the names of faculty members who teach in every room in which some class is taught.
Determine the force exerted by the deltoid muscle : Determine the force exerted by the deltoid muscle on the upper arm at A and the x- and y-components of the force reaction at the shoulder joint O
Compare and contrast reversal treatment designs : Compare and contrast reversal treatment designs. What advantages or disadvantages exist for these two designs? Taking into consideration the strengths, limitations, and appropriateness of each design, which, in your supported opinion, is superior ..
Discuss the various logistical issues : Discuss the various logistical issues you would have to consider before commencing the import of products from the two new factories, taking into account the various procedures that need to be considered, the modes of transport you may need to use..
Find the aids of all aircraft that can be used on routes : Find the aids of all aircraft that can be used on routes from Los Angeles to Chicago. Identify the routes that can be piloted by every pilot who makes more than $100,000.
Interfaces between logistics and the core functional areas : Assignment Brief:  Select a manufacturer that you are familiar with and assume that you are the logistics manager of this organization, analyse the interfaces between logistics and the core functional areas, its current order cycle, and inventory ..
Implementation of lean : You are asked to provide a critical discussion on the implementation of lean which addresses the following questions: 1) Is there a best way to implement lean? 2) Are all organisations suitable for lean implementation?
Child development in the family context : Select a toddler or preschool aged child aged between 2-5yrs who has a pattern of normal development and observ the child in the context of their family.
How leadership skills develop : Discuss and support your position on whether leaders are born or made using current research. This discussion includes the following aspects:- A brief definition of leadership and How leaders are identified.

Reviews

Write a Review

Database Management System Questions & Answers

  Determine what type of database they are

You are the Database Administrator for "Data R Us" and you have been asked to research a set of online databases and determine what type of database they are; based of the four explanations of the DBMS above

  Summarize your paper by explain the database systems in

write a 600- to 700-word paper in which you do the following explain what database systems are and how they are used.

  Design and build a small database application

In Word, identify a potential database application. It should be based on data you understand well, such as student data (refer to text), a hobby (see Lesson 8), or a set of data you use on the job. When you have made your choice, proceed to Step ..

  Advantages of database management

Discuss the advantages of a database management approach to the file processing approach? Give examples to illustrate your answer.Outline the benefits and limitations of the relational database model for business applications today?

  What happens to the rms error for the validation data

What happens to the RMS error for the training data as the number of epochs inc reases - what happens to the RMS error for the validation data?

  Great deal of external and internal data

Scenario A: the company has a great deal of external and internal data that must be accessed randomly

  To what extent should you rely on the asn database

The ASN database and Web site were created and are maintained by two individuals. The database might be complete and accurate, or it might not be. To what extent should you rely on these data?

  Describes a virtualization project

Subsequently, the evaluation of the project is based on different types of virtualization mechanisms compared to standard physical server deployment.

  Triangle classification specification

Consider the triangle classification specification. The system reads in three positive values from the standard input. The three values A,B, and C are interpreted as representing the lengths of the sides of a triangle.

  Establish a single control transport connection

This connection would be used to carry control signals relating to all user transport connection between the two entities. Discuss the implications of this strategy.

  Describe how harrahs treats customer data

Describe how Harrah's treats customer data. What is customer lifetime value? Do you think this is an easier metric to calculate at Caesars or Wal-Mart? Why?

  Use data mining technique

The software MUST use DATA MINING TECHNIQUES (at least one like classification or association rule mining etc). The work involves analysing loads of the Hospitals data to search for the desired patterns.

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