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

Data Dictionary

Product
Advanced SQL Engine
Teradata Database
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-10-15
dita:mapPath
yoz1556235523563.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1092
lifecycle
previous
Product Category
Teradata Vantageā„¢

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