Aggregate Functions as Window Functions
Partitioning
Ordering
Window Frames
Named Windows
CUME_DIST
DENSE_RANK
NTILE
PERCENT_RANK
RANK
ROW_NUMBER
FIRST_VALUE()
LAG
LAST_VALUE()
LEAD()
NTH_VALUE()
Aggregate Functions Inside Window Specification