COUNT_mode - Analytics Database - Teradata Vantage

Database Utilities

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2024-05-02
dita:mapPath
ymn1628096214445.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
vkz1472241255652
lifecycle
latest
Product Category
Teradata Vantageā„¢

Determines the data type returned by COUNT operations.

Field Group

General

Valid Settings

Setting Description
0 Data type depends on session mode:
  • For ANSI session mode, the data type is DECIMAL.
  • For Teradata session mode, the data type is INTEGER.
1 Data type is NUMBER.
2 Data type is BIGINT.

Default

0

Changes Take Effect

After the DBS Control Record has been written.

Usage Notes

If you experience numeric overflow errors with COUNT operations, try changing this field value to 1 or 2. This can happen for tables with billions of rows, specifically in Teradata session mode if the base table of the COUNT aggregate function exceeds about two billion rows.

Related Information

For more information about aggregate functions including COUNT, see Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates, B035-1145.