Home  >  Article  >  Database  >  SQLSERVER 2005的ROW_NUMBER、RANK、DENSE_RANK的用法

SQLSERVER 2005的ROW_NUMBER、RANK、DENSE_RANK的用法

WBOY
WBOYOriginal
2016-06-07 18:05:06847browse

SQL Server 2005 引入几个新的排序(排名)函数,如ROW_NUMBER、RANK、DENSE_RANK等。这些新函数使您可以有效地分析数据以及向查询的结果行提供排序值。

SQL code
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn