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 ='計算機系'))
