Created
August 23, 2020 17:31
-
-
Save janbenetka/298b552fcbe89205c28012e5c142e3bf to your computer and use it in GitHub Desktop.
[Add leading zeros in BigQuery] #leading_zero #bigquery
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
SUBSTR(FORMAT("00%d", state_fips ), -2) as state_fips, | |
SUBSTR(FORMAT("00000%d", fips ), -5) as fips, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment