Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 16 Jan 2006 @ 14:21:11 GMT


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


Subj:   Re: Time calculations and MLoad
 
From:   Fred W Pluebell

Explicitly specify a format for the character conversion that will include leading zeros:

     SELECT  cast (cast (86341/3600 as DECIMAL(2) FORMAT '99') as CHAR(2))
             || ':' ||
             cast (cast ((86341/60 mod 60) as DECIMAL(2) FORMAT '99') as CHAR(2))
             || ':' ||
             cast (cast ((86341/60.0000  mod 1  *  60) as DECIMAL(2) FORMAT '99') as CHAR(2))


     
  <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