Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试查找低于课程平均成绩的学生名单
我有这个查询
Select studentName from courseGrade where grade < avg(grade) and sectionID=290001
使用子查询来计算课程的平均成绩。例如:
select studentName from courseGrade where sectionID = 290001 and grade < ( select avg(grade) from courseGrade where sectionID = 290001 )