Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Display the age and name for the pilot who was the oldest when HIRED. 2. Using a SET OPERATOR, display the pilots and the

1. Display the age and name for the pilot who was the oldest when HIRED.

2. Using a SET OPERATOR, display the pilots and the number of miles flown as "Miles Flown", include pilots who have not yet flown (for those pilots, display “0” for miles flown”)

4. List the pilots that are paid above the average for their state and the state average pay.

5. Display the name of the pilot, pay and age of the pilot who has the maximum pay of pilots under the age of 50 (Hint, you must calculate age using pil_birthdate and sysdate).

 

Flight Reservation Schema - Entity Relationship Diagram PAS ITINERARY NO PAS_NAME PAS FARE NUMBER PAS CONFIRM NO NUMBER TIC ITINERARY NO TIC FLIGHT NO TIC FLIGHT DATE TIC_SEAT pil pilot id pil pilotna me pil_ssn pil_street pil_city pil_state pil_zip pil fight pay pil_brthdate pil_hiredate Passenger Is for Pass M Ticket Pilots 1 1 Passenger reserves Is for departure Flys M M Reservation 1 Is for departure 1 Departures M Uses 1 DEP FUGHT NO DEP DEP DATE DEP_PILOT_ID DEP_EQUIP_NO RES CONFIRM NO RES_DATE RES_NAME RES_PHONE RES_FLIGHT_NO RES_FLIGHT_DATE Equip_type Fight M departures EQ EQUIP NO EQ_EQUIP TYPE EQ SEAT CAPACITY EQ FUEL CAPACITY EQ_mies_per_gal Airport Org Dest M Flight air code air_location air_elevation air_phone air_hub_airline fl flight no fl_orig fl_dest fl_orig_time fl_dest_time fl_meal fl_fare fl_time_zones

Step by Step Solution

3.53 Rating (153 Votes )

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

Database Systems Design Implementation and Management

Authors: Carlos Coronel, Steven Morris

13th edition

1337627909, 978-1337627900

More Books

Students also viewed these Databases questions

Question

What are managements objectives related to payroll?

Answered: 1 week ago

Question

What does e-commerce mean and how did it evolve?

Answered: 1 week ago

Question

What are scripts, and how are they created in ColdFusion?

Answered: 1 week ago