标签:
20、查询score中选学多门课程的同学中分数为非最高分成绩的记录。
select * from score a where sno in (
select sno from score group by sno having count(1)>1)
and a.degree<(select max(degree) from score b where a.cno=b.cno )
查询score中选学多门课程的同学中分数为非最高分成绩的记录。
标签:
原文地址:http://www.cnblogs.com/wangguoning/p/5965382.html