SQL语句如下: select student.sno 学号,sname 姓名,sgrade 入学成绩,count(cno)选课门数,avg(grade)平均分 from student,score where student.sno=score.sno group by student.sno,sname,sgrade其中sno、sname、sgrade、cno、grade分别为:学...
select sname from studentwhere sno in(
select a.sno from studentcourse a join course b
on a.cno=b.cno
where b.cname='数据库原理' and a.score>90)
select a.sclass as 班级,count(*) as 不及格人数 from
student a join studentcourse b
on a.sno=b.sno
where b.score<60
group by a.sclass
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)