Skip to content

Latest commit

 

History

History
36 lines (31 loc) · 1.83 KB

File metadata and controls

36 lines (31 loc) · 1.83 KB
description Analytic Functions (Transact-SQL)
title Analytic Functions (Transact-SQL) | Microsoft Docs
ms.custom
ms.date 07/24/2017
ms.prod sql
ms.prod_service database-engine, sql-database, sql-data-warehouse, pdw
ms.reviewer
ms.technology t-sql
ms.topic reference
dev_langs
TSQL
ms.assetid 60fbff84-673b-48ea-9254-6ecdad20e7fe
author cawrites
ms.author chadam
monikerRange >=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current

Analytic Functions (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-asa-pdw]

SQL Server supports these analytic functions:

Analytic functions calculate an aggregate value based on a group of rows. Unlike aggregate functions, however, analytic functions can return multiple rows for each group. Use analytic functions to compute moving averages, running totals, percentages or top-N results within a group.

See also

OVER Clause (Transact-SQL)