第十题 我写的是select student.sid,student.sname,max(score)
from sc right join student on student.sid=sc.sid
group by student.sid;
但是查询结果还多了一了一行最大值为null的结果,怎么查可以没有这个呢
select student.sid,student.sname,max(score)
from sc LEFT join student on student.sid=sc.sid
group by student.sid;
改成左链接查询
有帮助的话,请点采纳该答案~