Created
July 31, 2021 03:32
-
-
Save mbforr/b5722e38f98342cd2f91a1090c9e4c8f 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 | |
state_name, | |
CASE | |
WHEN state_name IN ('Minnesota', 'Wisconsin', 'Iowa', 'Illinois', 'Indiana', 'Ohio', 'Michigan', 'Missouri', 'Kansas', 'Nebraska', 'North Dakota', 'South Dakota') THEN 'Midwest' | |
ELSE | |
'Not Midwest' | |
END | |
AS midwest | |
FROM | |
`bigquery-public-data.geo_us_boundaries.states` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment