July 2015
Intermediate to advanced
972 pages
21h 39m
English
CHAPTER 5
![]()
Aggregations and Grouping
Aggregate functions are used to perform a calculation on one or more values, and the result is a single value. If your query has any columns with nonwindowed aggregate functions, then a GROUP BY clause is required for the query. Table 5-1 shows the various aggregate functions.
Table 5-1. Aggregate Functions
|
Function Name |
Description |
|---|---|
|
AVG |
The AVG aggregate function calculates the average of non-NULL values in a group. |
|
CHECKSUM_AGG |
The CHECKSUM_AGG function returns a checksum value based on a group of rows, allowing you to potentially track changes to a table. For example, adding a new row ... |
Read now
Unlock full access