标签:
12、查询Score表中至少有5名学生选修的并以3开头的课程的平均分数。
select cno,count(cno),avg(degree) from score t group by cno having count(cno)>=5 and substr(cno,0,1)=‘3‘
13、查询分数大于70,小于90的Sno列。
select sno,degree from SCORE t where degree>70 and degree <90
14、查询所有学生的Sname、Cno和Degree列。
select sname,cno,degree from SCORE,student t
15、查询所有学生的Sno、Cname和Degree列。
select sno,cname,degree from SCORE,course t
16、查询所有学生的Sname、Cname和Degree列。
select sname,cname,degree from SCORE,course,student t
17、 查询“95033”班学生的平均分。
select class,cno,avg(degree) from score,student t where class=‘95033‘ group by cno,class
标签:
原文地址:http://www.cnblogs.com/miss123/p/5579548.html