查询“英语”学科比“中文”学科成绩高的所有学生的学生编号

题目如下

 

 

select distinct a.id
from sc a,sc b
where a.id=b.id and a.course='英语' and b.course='中文' and a.score > b.score;

 

posted on 2023-03-02 08:18  写个笔记  阅读(19)  评论(0编辑  收藏  举报

导航