17.10 - Example: Using AnalyzeSP - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Operators and User-Defined Functions

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-08-13
dita:mapPath
fsi1592016213432.ditamap
dita:ditavalPath
fsi1592016213432.ditaval

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