Ver originalSELECT A.alumno_tipo, AVG(N.nota) PROMEDIO FROM alumno A INNER JOIN notas N ON A.alumno_id = N.id_alumno WHERE N.nota NOT IN(0, 5)GROUP BY alumno_tipo, id_asignatura ORDER BY alumno_tipo;