-4
look at my code
select count(alunocursos.codAluno), alunocursos.codCurso from
alunocursos join aluno on (aluno.id = alunocursos.codAluno) group by
alunocursos.codCurso
this will make me return the amount of students who held each course i also have the courses table (id, description)
how do i make in the above query return me, instead of course id, the course description?
Put the MER, if possible, is easier to help.
– cezar
Look what you’ve programmed here:
GROUP BY alunocurso.codCurso
... should ask to group by DESCRIPTION course. You have tried?– Fabio Klevinskas Lopes