Analytical functions include simple aggregates, window functions, and numeric functions.
Simple aggregates — AVG, COUNT, MAX, MIN, and SUM, STDDEV, and VARIANCE
Window functions:
Windowing aggregates — AVG, COUNT, MAX, MIN, and SUM.
Ranking functions — RANK, DENSE_RANK, PERCENT_RANK, ROW_NUMBER, and NTILE.
Statistical functions — STDDEV, STDDEV_SAMP, STDDEV_POP, VARIANCE, VAR_SAMP, and VAR_POP.
Distribution functions — PERCENTILE_CONT and PERCENTILE_DISC.
Inter-row functions — LAG and LEAD.
Numeric functions — WIDTH_BUCKET, CEIL, and LN, EXP, POWER, SQRT, and FLOOR.
Unlike some aggregate functions, you cannot specify DISTINCT in window functions.
* The OLAP SQL standard allows Grouping() in GROUP BY CUBE, or GROUP BY ROLLUP operations only.