-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into staging/fix_comex_stat
- Loading branch information
Showing
5 changed files
with
143 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
...censo_2022/br_ibge_censo_2022__indigenas_populacao_alfabetizada_grupo_idade_municipio.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ | ||
config( | ||
alias="indigenas_populacao_alfabetizada_grupo_idade_municipio", | ||
schema="br_ibge_censo_2022", | ||
) | ||
}} | ||
select | ||
safe_cast(munic_pio__c_digo_ as string) id_municipio, | ||
safe_cast(sexo as string) sexo, | ||
safe_cast(idade as string) grupo_idade, | ||
safe_cast(alfabetiza__o as string) alfabetizacao, | ||
safe_cast(valor as int64) populacao_indigena, | ||
from | ||
`basedosdados-staging.br_ibge_censo_2022_staging.indigenas_populacao_alfabetizada_grupo_idade_municipio` | ||
as t | ||
where idade not like 'Total' |
15 changes: 15 additions & 0 deletions
15
...bge_censo_2022/br_ibge_censo_2022__indigenas_taxa_alfabetizacao_grupo_idade_municipio.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ | ||
config( | ||
alias="indigenas_taxa_alfabetizacao_grupo_idade_municipio", | ||
schema="br_ibge_censo_2022", | ||
) | ||
}} | ||
select | ||
safe_cast(munic_pio__c_digo_ as string) id_municipio, | ||
safe_cast(sexo as string) sexo, | ||
safe_cast(idade as string) grupo_idade, | ||
safe_cast(valor as float64) taxa_alfabetizacao, | ||
from | ||
`basedosdados-staging.br_ibge_censo_2022_staging.indigenas_taxa_alfabetizacao_grupo_idade_municipio` | ||
as t | ||
where idade not like 'Total' |
16 changes: 16 additions & 0 deletions
16
..._censo_2022/br_ibge_censo_2022__populacao_alfabetizada_cor_raca_grupo_idade_municipio.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{{ | ||
config( | ||
alias="populacao_alfabetizada_cor_raca_grupo_idade_municipio", | ||
schema="br_ibge_censo_2022", | ||
) | ||
}} | ||
select | ||
safe_cast(munic_pio__c_digo_ as string) id_municipio, | ||
safe_cast(cor_ou_ra_a as string) cor_raca, | ||
safe_cast(sexo as string) sexo, | ||
safe_cast(idade as string) grupo_idade, | ||
safe_cast(alfabetiza__o as string) alfabetizacao, | ||
safe_cast(valor as int64) populacao, | ||
from | ||
`basedosdados-staging.br_ibge_censo_2022_staging.populacao_alfabetizada_cor_raca_grupo_idade_municipio` | ||
as t |
15 changes: 15 additions & 0 deletions
15
...ibge_censo_2022/br_ibge_censo_2022__taxa_alfabetizacao_cor_raca_grupo_idade_municipio.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{{ | ||
config( | ||
alias="taxa_alfabetizacao_cor_raca_grupo_idade_municipio", | ||
schema="br_ibge_censo_2022", | ||
) | ||
}} | ||
select | ||
safe_cast(munic_pio__c_digo_ as string) id_municipio, | ||
safe_cast(cor_ou_ra_a as string) cor_raca, | ||
safe_cast(sexo as string) sexo, | ||
safe_cast(idade as string) grupo_idade, | ||
safe_cast(valor as string) taxa_alfabetizacao, | ||
from | ||
`basedosdados-staging.br_ibge_censo_2022_staging.taxa_alfabetizacao_cor_raca_grupo_idade_municipio` | ||
as t |
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