-1

我正在尝试查找低于课程平均成绩的学生名单

我有这个查询

Select studentName 
from courseGrade 
where grade < avg(grade) and sectionID=290001
4

1 回答 1

2

使用子查询来计算课程的平均成绩。例如:

select studentName 
from courseGrade 
where sectionID = 290001
  and grade < (
    select avg(grade) from courseGrade where sectionID = 290001
  )
于 2020-05-01T19:46:06.863 回答