Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SELECT YEAR(FROM_UNIXTIME(UNIX_TIMESTAMP(CAST(activityperiod AS STRING), 'yyyyMM'))) AS year, ROUND(SUM(passengercount) / 250) AS estimated_flights FROM default.sfo_monthly_air_traffic_passengers_data GROUP BY YEAR(FROM_UNIXTIME(UNIX_TIMESTAMP(CAST(activityperiod AS STRING), 'yyyyMM'))) ORDER BY estimated_flights DESC LIMIT

SELECT YEAR(FROM_UNIXTIME(UNIX_TIMESTAMP(CAST(activityperiod AS STRING), 'yyyyMM'))) AS year, ROUND(SUM(passengercount) / 250) AS estimated_flights FROM default.sfo_monthly_air_traffic_passengers_data GROUP BY YEAR(FROM_UNIXTIME(UNIX_TIMESTAMP(CAST(activityperiod AS STRING), 'yyyyMM'))) ORDER BY estimated_flights DESC LIMIT 3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

International Accounting

Authors: Frederick D. Choi, Gary K. Meek

7th Edition

978-0136111474, 0136111475

More Books

Students also viewed these Accounting questions

Question

Describe an overall causal model for substance-related disorders.

Answered: 1 week ago