SELECT id, id_curso, id_alumno, nombre, nota FROM colegio Group by id_curso HAVING nota = MIN(DISTINCT nota)