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 )
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 )