select sc.* from sc,course where sc.课程号=course.课程号 and course.课程名='3-105' and sc.成绩 between 60 and 80;
select sc.* from sc where sc.成绩 in(85,56,88);
3. 这个有疑问
我的理解是,学生参加了多门考试,所有成绩都在70-90之间的。取这部分人的学号。
select 学号 from (select 学号,max(成绩) 最高分,min(成绩) 最低分 from sc group by 学号) a where a.最高分 < 90 and a.最低分 >70
把需要表进行关联一下 加上条件进行筛选