Oracle數據庫作業-6 29、查詢選修編號為“3-105“課程且成績至少高於選修編號為“3-245”的同學的Cno、Sno和Degree,並按Degree從高到低次序排序。 select tname,prof from teacher where depart = '計算機系' and prof not in ( select prof from teacher where depart 。


29、查詢選修編號為“3-105“課程且成績至少高於選修編號為“3-245”的同學的Cno、Sno和Degree,並按Degree從高到低次序排序。

select tname,prof from teacher where depart = '計算機系' and prof not in  (

select prof from teacher where depart = '電子工程系')

 

30、查詢選修編號為“3-105”且成績高於選修編號為“3-245”課程的同學的Cno、Sno和Degree.

select * from score a where  cno = '3-105' and a.degree>(

select b.degree from score b where cno = '3-245'and a.sno=b.sno)


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM