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 Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008