博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年7月24日

摘要: 取出每组的第一个select *from (select * ,RANK ( ) OVER( PARTITION by org order by reportcode asc) PartionNumfrom test) twhere PartionNum = 1rog:分组的字段reportcode :排序字段 阅读全文

posted @ 2013-07-24 18:59 生命如风 阅读(425) 评论(0) 推荐(0) 编辑