Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 15 Mar 2004 @ 13:59:11 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


Subj:   Re: How long time a session spent on Teradata
 
From:   Geoffrey Rommel

  I am trying to get my answer with this buggy SQL :  


> SELECT  SessionID, QueryID
> FROM DBC.QryLog
> with (sum(StartTime - LastRespTime)) MINUTE(4) TO SECOND(2) by SessionID;

This worked for me:

with sum(LastRespTime - StartTime MINUTE(4) TO SECOND(2)) by SessionID;



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023