摘要:
From:http://blog.sina.com.cn/s/blog_4388a973010007lh.htmlRANK ( ) OVER ( [query_partition_clause] order_by_clause )DENSE_RANK ( ) OVER ( [query_partition_clause] order_by_clause )可实现按指定的字段分组排序,对于相同分组字段的结果集进行排序,其中PARTITION BY 为分组字段,ORDER BY 指定排序字段over不能单独使用,要和分析函数:rank(),dense_rank(),row_number()等一起使 阅读全文
posted @ 2011-08-02 16:18
肚肚
阅读(250)
评论(0)
推荐(0)

浙公网安备 33010602011771号