Created
January 9, 2019 20:21
-
-
Save aerodame/25b9ec2da170dfc2820386b6433dfaa3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
# Find the average temperature | |
ROUND(AVG(temp),2) AS temp_avg_f, | |
stn AS noaa_station_number FROM | |
( | |
SELECT * FROM `bigquery-public-data.noaa_gsod.gsod2015` UNION ALL SELECT * FROM `bigquery-public-data.noaa_gsod.gsod2016` UNION ALL SELECT * FROM `bigquery-public-data.noaa_gsod.gsod2017` | |
) | |
GROUP BY 2 ORDER BY 1 DESC LIMIT 5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment