select CourseNo, COUNT(StudentNo) as '不低于80分人数' from StudentScore where TotalMark >=80 --假设分数用TotalMark字段 group by CourseNo