Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 03 May 2004 @ 16:30:23 GMT


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


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

Here's something else I don't understand:

     SELECT
          CAST ( '00:00:00.1' AS INTERVAL HOUR(4) TO SECOND(1) ) A
          ,1000 * A B
          ,TYPE(B)
          ,CAST ( B AS INTERVAL HOUR(4) TO SECOND(1) ) C
          ,TYPE(C)

     Column B is incorrect, with a datatype of HOUR(4) TO SECOND(1).
     Column C is nothing more than a CAST of column B to the same datatype
     (HOUR(4) TO SECOND(1)), yet it is correct!

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: 23 Jun 2019