Functions
The window function can be any of the aggregation functions that we discussed above.
- Special window functions
ROW_NUMBER()
→ # of the current rowRANK()
→ Order position of the current row.
The OVER
keyword specifies how to group together tuples when computing the window function.
Use PARTITION BY
to specify group.