Skip to content
Snippets Groups Projects
Commit 721c8ae8 authored by Fernando Gbur dos Santos's avatar Fernando Gbur dos Santos
Browse files

[FIX] new_pnad fix 2

parent bebd55e7
No related branches found
No related tags found
3 merge requests!391Hom -> Prod,!386Merge development -> homologa,!383FIrst deploy of new route 'new_pnad'
......@@ -137,7 +137,7 @@ rqf.addField({
// Return all cities
PnadNovoApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
req.sql.from('pnad_novo')
.field('select(distinct(pnad_novo.projecao_populacao_por_niveis_geo))', 'name')
.field('sum(distinct(pnad_novo.projecao_populacao_por_niveis_geo))', 'name')
.field('pnad_novo.ano_ref', 'year')
.group('pnad_novo.ano_ref')
next();
......
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