only a sql

发表于:2007-07-02来源:作者:点击数: 标签:
select a.id,a.name,a.score
from temp a,(select name,max(score) as max_score from temp group by name) b
where a.name =b.name
and a.score=b.max_score

原文转自:http://www.ltesting.net