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)