求各科最高分的一个思路

select * from  tb t where not exists(select 1 from tb where 科目=t.科目 and 成绩>t.成绩)

猜你喜欢

转载自blog.csdn.net/jianguangguo/article/details/4155529