Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 04 May 2004 @ 16:52:17 GMT


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


Subj:   Re: Converting time in miliseconds to TIEMSTAMP in teradata
 
From:   Maxwell, Donald

The only general workaround I can see is to split the interval into the non-seconds and seconds components, apply the multiplication seperately on each component, and then add them back together. Of course, this is very complex.

eg.

     SELECT
           INTERVAL '00:00:01.999' HOUR TO SECOND A
           ,2095 M
           ,M * ( A - CAST ( EXTRACT(SECOND FROM A) AS INTERVAL SECOND ) )
           + M * EXTRACT(SECOND FROM A) * CAST('00:00:01' AS INTERVAL HOUR TO SECOND )


Donald Maxwell



     
  <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