Using advanced window definitions
Now that you understand the basics of window functions, it is time to introduce a few advanced topics that will make it easier to use them. These include a list of common window functions, the WINDOW keyword, and the window frame. Then you will use them in an exercise.
Common window functions
The following table summarizes a variety of statistical functions that are useful. It is also important to emphasize again that all aggregate functions can also be used as window functions (AVG, SUM, COUNT, and so on):
|
Name |
Description |
|
ROW_NUMBER |
Number of the current row within its partition, starting from 1. Usually, it is used with a sorted list. For example, the |