Find the eids of employees who make the highest salary

Assignment Help Database Management System
Reference no: EM13934310

Consider the following relations containing airline flight information: Flights(flno: integer, from: string, to: string, distance: integer, departs: time, arrives: time) 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 (otherwise, he or she would not qualify as a pilot), and only pilots are certified to fly.

Write the following queries in relational algebra, tuple relational calculus, and domain relational calculus. Note that some of these queries may not be expressible in relational algebra (and, therefore, also not expressible in tuple and domain relational calculus)! For such queries, informally explain why they cannot be expressed. (See the exercises at the end of Chapter 5 for additional queries over the airline schema.)

1. Find the eids of pilots certified for some Boeing aircraft.

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

3. Find the aids of all aircraft that can be used on non-stop flights from Bonn to Madras.
4. Identify the flights that can be piloted by every pilot whose salary is more than $100,000.

5. Find the names of pilots who can operate planes with a range greater than 3,000 miles but are not certified on any Boeing aircraft.

6. Find the eids of employees who make the highest salary.

7. Find the eids of employees who make the second highest salary.

8. Find the eids of employees who are certified for the largest number of aircraft.

9. Find the eids of employees who are certified for exactly three aircraft.

10. Find the total amount paid to employees as salaries.

11. Is there a sequence of flights from Madison to Timbuktu? Each flight in the sequence is required to depart from the city that is the destination of the previous flight; the first flight must leave Madison, the last flight must reach Timbuktu, and there is no restriction on the number of intermediate flights. Your query must determine whether a sequence of flights from Madison to Timbuktu exists for any input Flights relation instance.

Reference no: EM13934310

Questions Cloud

Description of how you collected the data : References to data sources used for your study. Although you will work as a group to undertake your analysis, you must submit an individual report. The text, graphs, tables etc included in your report should be your own work. Data have been collec..
How address different sexual orientation as group supervisor : Does anyone have any thoughts or comments on how to address different sexual orientations (LGBT) as the group supervisor? My understanding is the strength of the group comes from the interaction and acceptance of each member. Any thoughts on how t..
Fundamental quality management tools and techniques : Before starting this assessment activity, read the full assessment description, marking criteria, submission requirements and guidance provided in the course textbook and below.
Presentation of data for the senior investment advisers : Having completed your Graduate Degree from Cambridge, you have just got a job at a small investment advisory firm. Your firm recommends investment funds to Self-Managed Super Fund (SMSF) clients based on their risk and return characteristics.
Find the eids of employees who make the highest salary : Find the eids of employees who make the highest salary. Find the eids of employees who make the second highest salary.
Meeting the customer requirements : Meeting the customer requirements (Oakland 2003) is a reasonable definition of quality. b. Customer satisfaction means we can wrap up our projects more rapidly (Frame 2002, quoted in Reid 2013a) c. Not doing it right the first time at every stage ..
What is the role of an i/o psychologist in an organization : How are I/O psychologists trained? What is the role of an I/O psychologist in an organization? How will the role of I/O psychologists change/evolve in the next several years?
Full assessment description-marking criteria : Before starting this assessment activity, read the full assessment description, marking criteria, submission requirements and guidance provided on the course textbook. Assessment Guidance Then check the assessment discussions on the forum(s) for a..
Use excel to set up an amortization schedule : A customer with a trade-in offers the store a $260 cash price for the cabinet. Is that a better deal (for the customer) than the store is offering? On Mary's 16th birthday, her parents invest on her behalf an amount of $5,000 into an account that ..

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