我用子查询可以做出来,但是连接查询实在不会
这里本来就应该用子查询。非要套上连接,那就第一个表连自己 select a.*, b.* from (select * from score where course_id = 1) a join (select * from score where course_id = 2) b on a.student_id = b.student_id where a.number > b.number