Guest User

Untitled

a guest
Apr 23rd, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. SELECT date
  2. ,a.username
  3. ,a.errorcode
  4. ,SUBSTR(b.sqltextinfo, 1, 15000)
  5. ,a.starttime
  6. ,a.firstresptime
  7. ,a.firststeptime
  8. ,((a.firstresptime - a.starttime) HOUR(4) TO SECOND(2)) AS elapsedtime
  9. ,((a.firstresptime - a.firststeptime) HOUR(4) TO SECOND(2)) AS executiontime
  10. ,elapsedtime - executiontime AS delaytime
  11. FROM dbc.QryLogV a
  12. INNER JOIN dbc.QryLogSqlV b ON a.procid = b.procid AND a.queryid = b.queryid
  13. WHERE a.Username = 'xxx';
Add Comment
Please, Sign In to add comment