diff --git a/src/libs/routes/studentsAee.js b/src/libs/routes/studentsAee.js index 6664294eae42d88fbf9111d4aba894f5333d00f8..6e58c18823b94b41f80e42e9ce43f75e7648b293 100644 --- a/src/libs/routes/studentsAee.js +++ b/src/libs/routes/studentsAee.js @@ -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());