Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 03 May 2004 @ 13:32:12 GMT


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


Subj:   Re: Converting time in miliseconds to TIEMSTAMP in teradata
 
From:   Agarwal, Rishi

Thanks a lot !!!

     "SELECT 86399999 (DECIMAL(18,0)) T
           ,CAST ( ('1969-12-31' (DATE)) + T / 86400000.00000000 AS TIMESTAMP(3) )
               + INTERVAL '17' HOUR + (T / 1000.000 MOD 86400)
               * CAST('00:00:01' AS INTERVAL HOUR TO SECOND)"

this query is working fine..


thanks

Rishi



     
  <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