窗口函数rows between 、range between的区分

【移动窗口】

移动窗口,顾名思义,“窗口”(也就是操作数据的范围)不是固定的,而是随着设定条件逐行移动的。

在over后面的子句中,使用rows加“范围关键字”可以设置移动窗口,语法如下:

其中,“范围起始行”和“范围终止行”使用特定关键字表示,常用的特定关键字如下。

• n preceding:当前行的前n行。

• n following:当前行的后n行。

• current row:当前行。

• unbounded preceding:第1行。

• unbounded following:最后1行。

1、rows between() 

“rows between <范围起始行> and <范围终止行>”用于指定移动窗口的范围,范围包含起始行和终止行。

2、range between()

“range between <范围起始行> and <范围终止行>”用于指以当前行在开窗函数中的值为根基,然后按照order by进行排序,围绕那个值去加减上下界。

  • 4
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Course Description Microsoft® Excel® 2013: Working with Data Ranges and Tables is a two-lesson intermediate level course that guides you through organizing, entering and validating worksheet data and then effectively sorting, filtering, subtotaling, and outlining the data. You also learn how to define well-organized data as an Excel table; then use Table features to work with the data. In Lesson 1 you learn how to organize columns and rows of data into a range so that you can effectively sort, filter, subtotal, and outline the data. Then you learn how to protect the data from invalid data entry by setting data validation rules for specific cells. You learn how to copy these validation rules to other cells, how to remove validation rules from cells and how to use the Data Form dialog box to enter and locate data in a range. Next you learn how to sort a data range on one column or on multiple columns and how to use a custom sort order, the Filter (AutoFilter) feature and the Advanced Filter feature to view data that meets specific criteria. Then you learn how to add and remove subtotals from a data range while viewing the data range in outline form. You also learn how to create a chart using an outline’s subtotals. Finally, in Lesson 2 you explore the advantages of defining a range of data as an Excel 2013 table. Prerequisites The Napier & Rivers courses Microsoft® Excel® 2013: Getting Started with Excel and Microsoft® Excel® 2013: Creating and Formatting Charts or the equivalent experience working with Excel 2013 in the Windows operating system environment are prerequisites for this course. Data Files If you have not yet downloaded the data files, visit http://ebooksforoffice.com/datafiles, locate Microsoft® Excel® 2013: Working with Data Ranges and Tables book title, and then click the ‘Download data files’ link. Learning Objectives After completing this course you will be able to: identify the guidelines for a well-organized data range; select ways to create and test validation rules; select the Data Form for data entry, recognize ways to sort and filter a data range, identify the main differences between a data range and a table, select ways to add subtotals, a Grand Total and data grouping to a data range, identify multiple ways to define an Excel table using buttons on the HOME and INSERT tabs, the Quick Analysis feature, a keyboard shortcut and by formatting a data range as a table, and recognize ways to enter data and formulas in a table; change table formatting; resize a table; scroll, sort, filter and summarize a table; and convert a table to a data range Table of Contents Lesson 1: Entering, Validating, Sorting, Filtering and Outlining a Data Range Lesson 2: Defining and Using Tables

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值