Answered step by step
Verified Expert Solution
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
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