Oracle數據庫作業-6 查詢“張旭“教師任課的學生成績。


23、查詢“張旭“教師任課的學生成績。

select * from score s where cno in (

select cno from course where tno in(

select tno from teacher where tname = '張旭'))

 

24、查詢選修某課程的同學人數多於5人的教師姓名。

select tname from teacher where tno in (

select tno from course where cno in (

select cno from score group by cno having count(sno)>5))

 

25、查詢95033班和95031班全體學生的記錄。

select * from student s where sclass in (

select sclass from student group by sclass having sclass in( '95033' ,'95031') )

 

26、  查詢存在有85分以上成績的課程Cno.

select cno from score where degree>85

 

27、查詢出“計算機系“教師所教課程的成績表。

select * from score where cno in (

select cno from course where tno in (

select tno from teacher where depart ='計算機系'))

 


免責聲明!

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



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