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.(Additional queries using the same schema are listed in the exercises for Chapter 4)   a. Identify the routes that can be piloted by every pilot who makes more than $100,000. b. Print the name and salary of every nonpilot whose salary is more than the average salary for pilots. c. Print the names of employees who are certified only on aircrafts with cruising range longer than 1000 miles and who are certified on some Boeing aircraft.

Oracle 12c: SQL
3rd Edition
ISBN:9781305251038
Author:Joan Casteel
Publisher:Joan Casteel
Chapter13: Views
Section: Chapter Questions
Problem 4HOA: Attempt to view the structure of the HOMEWORK13 view.
icon
Related questions
Question

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.
(Additional queries using the same schema are listed in the exercises for Chapter 4)

 

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

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

c. Print the names of employees who are certified only on aircrafts with cruising range longer than 1000 miles and who are certified on some Boeing aircraft.

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
CMPTR
CMPTR
Computer Science
ISBN:
9781337681872
Author:
PINARD
Publisher:
Cengage