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
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1210-171K
Language
English (United States)

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