Essay
The following tables form part of a database held in a Relational Database Management System:
Formulate the following queries in SQL (the answers to these queries in relational algebra, tuple relational calculus, and domain relational calculus were given in the previous section).
(1) List all Boeing aircraft.
(2) List all Boeing 737 aircraft.
(3) List the employee numbers of pilots certified for Boeing aircraft.
(4) List the names of pilots certified for Boeing aircraft.
(5) List the aircraft that can fly nonstop from Glasgow to New York (flyingRange > flightDistance).
(6) List the employee numbers of employees who have the highest salary.
(7) List the employee numbers of employees who have the second highest salary.
(8) List the employee numbers of employees who are certified for exactly three aircraft.
Correct Answer:

Verified
(1)SELECT *
FROM Aircraft
WHERE aName = ...View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Correct Answer:
Verified
FROM Aircraft
WHERE aName = ...
View Answer
Unlock this answer now
Get Access to more Verified Answers free of charge
Q8: (a)SQL*Plus environment variables are set to
Q9: (a) What is a 'table' and what
Q10: Oracle database consists of logical and physical
Q11: A relational database contains details about journeys
Q12: Write SQL*Plus commands to do the following:
Q13: (a) What is a SQL*Plus script? Why
Q15: State the three primary uses of Oracle
Q16: The following tables form part of a
Q17: (a) What is a named block
Q18: Assume that the following table is created