3. 查询选修1号 课程的学生学号和成绩,并要求对查询结果按成绩的降序排列,如果成绩相同则按学号的升序排列
6. 查询缺少了成绩的学生的学号和课程号。
7.查询每个学生的学号,姓名,选修的课程名,成绩;
10. 查询每门课程的先行课程的课程名称,学分;
13.查询所在系部为“MA”且选修了高等数学课程的学生姓名,年龄,性别。
15.查询选修了数据结构课程,且成绩在90分以上的学生姓名,年龄。
20.查询选修了全部课程的学生的姓名。
21.查询至少选修了学号为“201215121”的学生所选修的全部课程的学生学号和姓名。
25.查询选修了操作系统课程的学生人数。
29.查询选修了数据库课程的最高分,平均分。
31.查询每个学生的学号,姓名,所获得的总学分(成绩大于等于60,则获得该门课程的学分)。
3. select sno,grade from SC where cno='1' order by sno asc 6. select sno,cno from SC where grade is NULL 7. select student.sno,sname,cname,grade from student,sc,course where student.sno=sc.sno and sc.sno=course.cno 10. select cname,ccredit from course 13. select sname,sage,ssex from student,sc,course where sdept='MA' and cname='数学'and student.sno=sc.sno and sc.cno=course.sno 15. select student.sname,sage from student,course,sc where cname='数据结构' and grade>90 and student.sno=sc.sno and sc.cno=course.sno 20. select Sname from student where NOT exists(select* from course where NOT exists(select* from SC where Sno=student.sno and cno=Course.Cno)) 21 select distinct scx.sno,sname from sc scx,student where scx.sno=student.sno and not exists (select * from sc scy where scy.sno='201215121'and not exists (select * from sc scz where scz.sno=scx.sno and scz.cno=scy.cno ) ) 25. 25. select count(course.cno) from course,sc where cname='操作系统'and sc.cno=course.cno 29. select max(sc.grade)as'最高分', avg(sc.grade)as'平均分' from course,sc where cname='数据库'and sc.cno=course.cno 31. select a.sno,a.sname,sum(b.ccredit) as 学分 from student a,course b,sc c where a.sno=c.sno and c.cno=b.cno and c.grade>=60 group by a.sno,a.sname