Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 2 (60 pts). The following relations keep track of airline flight information: Flight (flno: integer, from: string, to: string, distance: integer, departs: time, arrives:

image text in transcribed

Question 2 (60 pts). The following relations keep track of airline flight information: Flight (flno: integer, from: string, to: string, distance: integer, departs: time, arrives: time, price: real) Aircraft (aid: integer, aname: string, cruisingrange: integer) Certified (eid:integer.aid: integer) Employee (eid: integer, ename: string, salary: integer) Note that the Employee 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. For each pilot who is certified for more than three aircrafts, find the eid and the maximum cruisingrange of the aircraft for which she or he is certified. 2. Find the names of pilots whose salary is more than twice the price of the most expensive flight from 'Sacramento, CA, to Chicago, IL

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

1 2 3 Data Base Techniques

Authors: Dick Andersen

1st Edition

0880223464, 978-0880223461

More Books

Students also viewed these Databases questions