Skip to content

Instantly share code, notes, and snippets.

@lfy79001
Created May 28, 2024 10:07
Show Gist options
  • Save lfy79001/fc79da86c036985b5c7b6b2bf074ac9b to your computer and use it in GitHub Desktop.
Save lfy79001/fc79da86c036985b5c7b6b2bf074ac9b to your computer and use it in GitHub Desktop.
SELECT
name,
value/10 AS min_temperature,
latitude,
longitude
FROM
`bigquery-public-data.ghcn_d.ghcnd_stations` AS stn
JOIN
`bigquery-public-data.ghcn_d.ghcnd_2016` AS wx
ON
wx.id = stn.id
WHERE
wx.element = 'TMIN'
AND wx.qflag IS NULL
AND STRING(wx.date) = '2016-08-15'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment