Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started