SQL Server2008 window Calculation

Source: Internet
Author: User

(a) window definition : Refers to a set of rows specified for the user, also known as "Partition." As shown in the window partition. Each class is viewed as a data window with a total of three windows

(ii) Related methods of window calculation

1) over () Usage format: function name (column) over (option)

The over keyword means that a function is treated as a window function instead of an aggregate function. The SQL standard allows all aggregate functions to be used as window-opening functions, using the over keyword to differentiate between the two usages.

(iii) Case studies

(1)

Resources:

1 Zhang Hongju "Sharp SQL", Nineth Chapter

2 "open Window function in brief

3 "over () Use of open window function

SQL Server2008 window Calculation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.