在高级子查询中。我们把一个查询的结果作为另一个查询的条件。
这就是子查询。
再条件中可以有聚合函数,但返回值只能有一个(聚合函数或分组依据)。
--17、查询“95033”班所选课程的平均分。Student Score Courese
select avg(Degree) as '平均分' from Student a join Score b on a.Sno=b.Sno where Class='95033';