Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 16 Jan 2006 @ 14:20:41 GMT


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


Subj:   Re: Time calculations and MLoad
 
From:   Sanchez, Idrike

How about adding format '99'?

I also removed the extra cast to CHAR

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

Kiki Sanchez
Data Warehouse Group
Technology Division
Continental Airlines



     
  <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