sql server 排除名字重复数据,获取最新的数据

获取学生最高的分数信息

select * from scores a where

 not exists(select * from scores  b where and a.score>v_b.score and a.name=b.name)

posted @ 2011-08-29 10:56  茶海  阅读(657)  评论(0编辑  收藏  举报