Question: SQL Queries: Flights database 1 . ) Using the flights.m _ ticket _ prices and the m _ airports table, find the distinct routes (

SQL Queries: Flights database
1.) Using the flights.m_ticket_prices and the m_airports table, find the distinct routes (route is a distinct origin-destination pair) where the origin and the destination are part of the same state; in the output show the origin, dest, and the state of the airports.
2.) Use the table flights.m_ticket_prices. For each route (origin-destination pair), list the following statistics:
cheapest fare
most expensive fare
the average fare
number of carriers serving the route
total number of passengers for the route
Report results only for routes with at least 3 carriers an

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!