首页> 外文期刊>Inside Microsoft Visual Basic >Simplify reporting queries with four new SQL 2005 Transact-SQL functions
【24h】

Simplify reporting queries with four new SQL 2005 Transact-SQL functions

机译:使用四个新的SQL 2005 Transact-SQL函数简化报表查询

获取原文
获取原文并翻译 | 示例

摘要

As Figure A shows, the ROW_NUMBER function adds a column to the resultset where the number is incremented for each row displayed. The ROW_NUMBER function, like the other ranking functions we'll discuss, doesn't rely on the physical order of the resultset. Rather, you need to supply the OVER clause to tell it how to order rows when it calculates the rank. In this case, the OVER clause specifies an ORDER BY clause; you can also include a partitioning clause as we'll show you later.
机译:如图A所示,ROW_NUMBER函数将一列添加到结果集中,其中结果的每一行的编号都会递增。像我们将要讨论的其他排名函数一样,ROW_NUMBER函数也不依赖于结果集的物理顺序。相反,您需要提供OVER子句以告诉它在计算排名时如何对行进行排序。在这种情况下,OVER子句指定ORDER BY子句;您还可以包含一个分区子句,稍后我们将向您展示。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号