Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Analytic Functions (Transact-SQL)

 

Applies To: SQL Server 2014, SQL Server 2016 Preview

SQL Server 2016 supports the following analytic functions. Analytic functions compute an aggregate value based on a group of rows. However, unlike aggregate functions, they can return multiple rows for each group. You can use analytic functions to compute moving averages, running totals, percentages or top-N results within a group.

CUME_DIST (Transact-SQL)

LEAD (Transact-SQL)

FIRST_VALUE (Transact-SQL)

PERCENTILE_CONT (Transact-SQL)

LAG (Transact-SQL)

PERCENTILE_DISC (Transact-SQL)

LAST_VALUE (Transact-SQL)

PERCENT_RANK (Transact-SQL)

Community Additions

ADD
Show:
© 2015 Microsoft