Ver originalSELECT COUNT(r2.AlumnoId) FROM RESULTADO r2 WHERE r2.Nota >= 7 SELECT COUNT(r2.AlumnoId) FROM RESULTADO r2 WHERE r2.Nota < 7