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. |