Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 20 Dec 2006 @ 17:25:28 GMT


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


Subj:   Re: Additional zeroes in teradata
 
From:   Anomy Anom

<-- Anonymously Posted: Wednesday, December 20, 2006 10:56 -->

If you insist on that format, try

     select
     trim(leading ' ' from
      trim(trailing '.' from
       trim(trailing '0' from
        cast(SUM(COALESCE(SALARY,0)) AS DECIMAL(13,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: 15 Jun 2023