Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

query for getting elapsed time - response (5) by usmans

$
0
0

Rajgopal, 
The above query will give you the total time the query spent on the system (including active time and delay time). If you want to calculate the total Active Execution Time of the query on the system (this will not include the time it spent in the delay state), you can use:

SELECT
   ( ( firstresptime - firststeptime  ) HOUR( 4 )  TO SECOND( 2 )  ) AS ExecutionTime

FROMdbc.qrylog WHEREusername='XXXXX';


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>