Ordered Analytical Functions - Analytics Database - Teradata Vantage

Database Introduction

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-09-27
dita:mapPath
gtm1628096154303.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dsm1472253642401
lifecycle
latest
Product Category
Teradata Vantageā„¢

Ordered analytical functions work over a range of data for a set of rows in a specified order to produce a result for each row in the set.

Like aggregate functions, ordered analytical functions are called for each item in a set. Unlike an aggregate function, an ordered analytical function produces a result for each detail item.

Ordered analytical functions allow you to perform sophisticated data mining on the information in your databases to get the answers to questions that SQL otherwise cannot provide.

Examples of ordered analytical functions:

Function Returned Value
AVG Arithmetic average of values in the specified expression for each row in the group. Specify OVER() phrase to make AVG an ordered analytical function.
RANK Ordered ranking of rows based on value of column being ranked.