Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 26 Mar 2003 @ 09:09:02 GMT


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


Subj:   Re: Timestamp difference
 
From:   Azzaretti, Sergio

In this case, you have to set up some rules, e.g. if the difference is greater than X then minutes, if not seconds, something like this:

select
case when minute(END_TIME - BEGIN_TIME) > X
               then minute(END_TIME - BEGIN_TIME)
               else second(END_TIME - BEGIN_TIME)
        end
from tblXYZ
;

Regards

Sergio Azzaretti



     
  <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: 27 Dec 2016