Skip to content
Snippets Groups Projects
Commit 3960c36d authored by Rafael S Castilho's avatar Rafael S Castilho
Browse files

add new field

parent 30c27a56
No related branches found
No related tags found
1 merge request!11New agregadas
CREATE TABLE jvt_educacao_ag
AS
SELECT
ano_censo,
cod_uf,
sgl_uf,
cor_raca,
CASE when (idade > 45) THEN 45
ELSE idade
END AS idade,
nivel_max_escola AS maior_nivel,
concluiu_frequentou,
in_escola,
serie_frequenta,
nivel_escola,
COUNT(*) AS total
FROM
pnad_cont
GROUP BY
ano_censo,
sgl_uf,
cod_uf,
cor_raca,
idade,
maior_nivel,
concluiu_frequentou,
serie_frequenta,
nivel_escola,
in_escola
ORDER BY
ano_censo ASC,
sgl_uf ASC,
cod_uf ASC,
cor_raca ASC,
idade ASC,
maior_nivel ASC,
concluiu_frequentou ASC,
serie_frequenta ASC,
nivel_escola ASC,
in_escola ASC
;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment