标签:sql
题目如图:
模拟题目建的表如下图:
答案:
select t3.id,t3.name,max(t3.score) from (
select t1.* from b t1,(select id,max(score) score from b group by id) t2 where t1.id=t2.id and t1.score<t2.score
) t3 group by t3.id;
本文出自 “屌丝逆袭” 博客,请务必保留此出处http://5731674.blog.51cto.com/5721674/1768128
标签:sql
原文地址:http://5731674.blog.51cto.com/5721674/1768128