17.00 - Example: Using QryLogStepsV with ServerByteCount - Teradata Database

Teradata Vantageā„¢ - Data Dictionary

prodname
Advanced SQL Engine
Teradata Database
vrm_release
17.00
created_date
June 2020
category
Administration
Programming Reference
featnum
B035-1092-170K

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