查询score中选学多门课程的同学中分数为非最高分成绩的记录。


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  )

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM