17.10 - Example: Using QryLogStepsV with ServerByteCount - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Administration
Programming Reference
Publication ID
B035-1092-171K
Language
English (United States)

The following SELECT statement gives the user name and the elapsed time of the steps whose queries have transferred more than 10 MB of data.

SELECT lv.username, sv.elapsedtime FROM DBC.QryLogStepsV AS sv,
DBC.QryLogV AS lv WHERE ServerByteCount / (1024*1024) GT 10 AND
sv.queryid = lv.queryid;

The query returns the following result:

username TOM
ElapsedTime 0:10:22.220000
username JOHN
ElapsedTime 0:21:32.510000