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

[ADD] First request updated. Trying to get all the people who attend schools

parent d622ea60
No related branches found
No related tags found
3 merge requests!417[ADD] Indicator "Taxa de Atendimento Educacional" updated on production!,!416[ADD] Route almost ready, some tests needed. Comments added and filters that...,!414[ADD] Route almost ready, some tests needed. Comments added and filters that...
......@@ -315,12 +315,13 @@ rateSchoolNewApp.get('/', rqf.parse(), rqf.build(), (req, res, next) => {
.field('round(sum(pnad_novo.peso_domicilio_pessoas_com_cal), 0)', 'total')
.field('pnad_novo.faixa_etaria')
.field('pnad_novo.ano_ref', 'year')
.where('pnad_novo.ano_censo >= 2019 AND frequenta_escola = 1')
.group('pnad_novo.ano_ref')
.group('pnad_novo.faixa_etaria')
.order('pnad_novo.ano_ref')
.order('pnad_novo.faixa_etaria')
console.log(req.sql.toString())
next();
}, query, id2str.transform(false), response('pnad_novo'));
}, query, id2str.transform(false), response('rate_school_new'));
module.exports = rateSchoolNewApp;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment