Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 09 Mar 2010 @ 16:22:22 GMT


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


Subj:   Re: NUMTODSINTERVAL in Teradata
 
From:   Dieter Noeth

Alves, Patrick wrote:

     > NUMTODSINTERVAL(150,'SECOND')
     >
     > ---------------------------------
     > +000000000 00:02:30.000000000


select 150 * interval '0000 00:00:01' day to second




     > NUMTODSINTERVAL(155,'HOUR')
     > ---------------------------------
     > +000000006 11:00:00.000000000


select 155 * interval '0000 01:00:00.000000' day to second

It's limited to 9999 days, but this is usually enough


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: 27 Dec 2016