Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

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

Databases A Beginners Guide

Authors: Andy Oppel

1st Edition

007160846X, 978-0071608466

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago