Question
Please use the tables in the flights database. Your deliverable should include the SQL queries that you write in support of your conclusions. 1. Show
Please use the tables in the flights database. Your deliverable should include the SQL queries that you write in support of your conclusions. 1. Show the total number of flights. 2. Show the total number of flights by airline (carrier). 3. Show all of the airlines, ordered by number of flights in descending order. 4. Show only the top 5 airlines, by number of flights, ordered by number of flights in descending order. 5. Show only the top 5 airlines, by number of flights of distance 1,000 miles or greater, ordered by number of flights in descending order. 6. Create a question that (a) uses data from the flights database, and (b) requires aggregation to answer it, and write down both the question, and the query that answers the question.
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