16.10 - COUNT_mode - Teradata Database

Teradata Database Utilities

Product
Teradata Database
Release Number
16.10
Published
June 2017
Language
English (United States)
Last Update
2018-04-26
dita:mapPath
zll1480972831047.ditamap
dita:ditavalPath
changebar_rev_16_10_exclude_audience_ie.ditaval
dita:id
vkz1472241255652

Purpose

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 Topics

For more information about aggregate functions including COUNT, see SQL Functions, Operators, Expressions, and Predicates.