Skip to content
Snippets Groups Projects
Commit 7e1a86f3 authored by João Kieras's avatar João Kieras
Browse files

Update school filter(2)

parent f57e6833
No related branches found
No related tags found
4 merge requests!335Homologa,!334Dev,!331Issue 752 aee,!309Merge new updates into master
......@@ -206,10 +206,10 @@ rqf.addField({
studentsAeeApp.get('/', rqf.parse(), (req, res, next) => {
req.sql.from('numero_estudantes_aee')
.field('ano_censo')
.field('COUNT(distinct id_aluno)', 'total')
.group('ano_censo')
.order('ano_censo')
.field('numero_estudantes_aee.ano_censo')
.field('COUNT(distinct numero_estudantes_aee.id_aluno)', 'total')
.group('numero_estudantes_aee.ano_censo')
.order('numero_estudantes_aee.ano_censo')
next();
}, rqf.build(), (req, res, next) => {
console.log(req.sql.toString());
......
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