Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 21 Dec 2006 @ 19:52:47 GMT


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


Subj:   Re: Converting Time to seconds
 
From:   Barner Eric

Here is a conversion

     select
     ( ( dbqlogtbl.LastRespTime - dbqlogtbl.FirstStepTime ) DAY ( 4 ) TO
     SECOND ) ( CHAR ( 26 ) ) AS elapsed
     , SUBSTR ( elapsed , 6 , 9 ) ( INT ) AS duration
     , ( ( Duration MOD 100 ) + ( ( Duration MOD 10000 ) / 100 ) * 60 + (
     Duration / 10000 ) * 3600 ) AS RunTimeSec
     , dbqlogtbl.*

     from dbc.dbqlogtbl as dbqlogtbl
     where collecttimestamp(date ) = current_date;


     
  <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