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
Using the flights.mticketprices and the mairports table, find the distinct routes route is a distinct origindestination 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.
Use the table flights.mticketprices. For each route origindestination 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 carriers an
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
