Answered You can hire a professional tutor to get the answer.

QUESTION

The primary key is underlined and the foreign key is shown in bold.

Using the following tables structure, please provide the SQL script to

answer the query that follows. The primary key is underlined and the foreign key is shown in

bold.

Frequent_flier(Name, ffID, City, Street, zip, miles)

Reservation(ResID, ffID, flightID, flightDate, class, price, seatID)

Flight(FlightID, OriginCityName, DestinationCityName, DepTime, ArrTime, equipID)

City(CityName, Population)

a. List the ffID, and average price paid for all purchased flights for each passenger who has

flown more than 100,000 miles.

b. List the names, miles and destination City Name for frequent flyers who have flown to cities

(Destinations) with population equal to the number of miles in their frequent flyer account.

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question