查询“001”课程比“002”课程成绩高的所有学生的学号;

select a.s_id from (select s_id,score from SC where C_ID='001') a,(select s_id,scorefrom SC where C_ID='002') b where a.score>b.score and a.s_id=b.s_id;

posted @ 2020-11-24 14:41  抬头就能看到阳光  阅读(699)  评论(0编辑  收藏  举报