16.20 - Example: Using QryLogStepsV with ServerByteCount - Teradata Database - Teradata Vantage NewSQL Engine

Teradata Vantageā„¢ Data Dictionary

Product
Teradata Database
Teradata Vantage NewSQL Engine
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2019-05-03
dita:mapPath
zzu1512081120577.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval

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