TD_ISFINITE Examples - Teradata Vantage

Database Unbounded Array Framework Time Series Functions

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2024-10-04
dita:mapPath
ncd1634149624743.ditamap
dita:ditavalPath
ruu1634160136230.ditaval
dita:id
ncd1634149624743

Existing Sales Table

The sales table is named orders1.

StoreID SEQ Sales
101 1 2.01000000000000E 002
101 2 **********************
101 3 2.02000000000000E 002
101 4 **********************

Example: TD_ISFINITE Call to Determine if Table Has Numeric Values

SELECT StoreID, SEQ, TD_ISFINITE(sales) AS Finite_in_Sales FROM orders1;

TD_ISFINTE Output to Determine If There are Numeric Values

StoreID SEQ Finite_in_Sales
------------------------
101     1    1
101     2    0
101     3    1
101     4    0

Example: TD_ISFINITE Call to Determine Count of Numeric Values

SELECT COUNT(*) FROM orders1 WHERE TD_ISFINITE(sales) = 1;

TD_ISFINITE Output from Count Call

Count(*)
-----------
2