Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 3 (5 points). The following relations keep track of airline flight information: Flights (flno:integer, from:string, to:string, distance: integer, departs:time, arrives:time, price:real) Aircraft (aid:integer, aname:string,
Question 3 (5 points). The following relations keep track of airline flight information: Flights (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) Employees (eid:integer, ename:string, salary:integer) Write the following queries in SQL: 1. For each pilot who is certified for more than three aircraft, 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 less than the price of the cheapest route from Los Angeles to Honolulu. 3. Find the aids of all aircraft that can be used on routes from Los Angeles to Chicago. 4. Print the names of employees who are certified only on aircrafts with cruising range longer than 1000 miles
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started