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

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!