Example: Using the tdheatmap_m Macro - Advanced SQL Engine - Teradata Database

SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
September 2020
Language
English (United States)
Last Update
2023-04-27
dita:mapPath
qqu1556127655717.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1210
lifecycle
previous
Product Category
Teradata Vantage™

Purpose

The tdheatmap_m macro is another way to get the temperature information. Run the macro to display additional columns such as Date, Time, DatabaseName, TableName, and CylinderId.

Note that when using the macro, you cannot SELECT particular columns or use the WHERE clause.

Syntax

tdheatmap_m ( amp_number )

The macro tdheatmap_m is created automatically using the tdheatmap table function. It takes the AMP number as an input parameter and is created in the DBC database.

The following example uses the tdheatmap_m macro to generate a heatmap for AMP 1:
EXECUTE DBC.tdheatmap_m(1);

And the resulting output: