Billpeng Space

技术源自生活
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

SQL中取出前三名的记录

Posted on 2009-09-10 15:33  billpeng  阅读(1109)  评论(0编辑  收藏  举报
select t.* from GameScore t where id in(select top 3 id from GameScore where GameID=t.GameID order by Score desc) order by Score desc