diff --git a/src/libs/routes_v1/newPnad.js b/src/libs/routes_v1/newPnad.js index e629c87a73dc0f869f16bbc8922b86e41c9b19e1..c514da5d865f0a9e896928fc7079ccd86ef23b6d 100644 --- a/src/libs/routes_v1/newPnad.js +++ b/src/libs/routes_v1/newPnad.js @@ -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();