Example: Using AnalyzeSP - Advanced SQL Engine - Teradata Database

SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
Published
January 2021
Language
English (United States)
Last Update
2023-04-27
dita:mapPath
xwv1596137968859.ditamap
dita:ditavalPath
hoy1596145193032.ditaval
dita:id
B035-1210
lifecycle
previous
Product Category
Teradata Vantage™

To analyze tables in the Personnel object list for queries logged over the last 7 days, and then recommend actions to move them into MyNewMap:

CALL TDMaps.AnalyzeSP(
   'MyNewMapList', 'Personnel',NULL,
	CAST(CURRENT_TIMESTAMP – INTERVAL '7' day AS TIMESTAMP),
   CURRENT_TIMESTAMP,
	'DBC', 'MyNewMapActions', :NumAlters, :NumExcludes, :NumLogEntries);

Procedure has been executed.
*** Total elapsed time was 19 minutes and 47 seconds.

NumAlters		   NumExcludes		 NumLogEntries
----------------	----------------	-------------
              85	               0		98020