Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 12 Jan 2005 @ 15:52:04 GMT


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


Subj:   Re: Interval Overflow Error
 
From:   Dieter Noeth

Hi Geoffrey,

there's no need to do that complex calculation ;-)

     select
       (cast(current_timestamp as date) - date '1970-01-01') * 86400 +
       + (extract(hour from current_timestamp) * 3600)
       + (extract(minute from current_timestamp) * 60)
       + cast(extract(second from current_timestamp) as integer)
     ;

Dieter



     
  <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