Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Thu, 20 May 2004 @ 14:10:43 GMT

  <Prev Next>   <<First <Prev

Subj:   Re: Formatting with Number
From:   Dieter Noeth

Vikas_Tandon wrote:

  I am trying to add format with number but it is not working.  

  I am trying for it  

  Cast(0.2 format Z.99)  

  So it should return .20  

  But it will return the same 0.2  

You're using Queryman?

Only Bteq cares about formats for output: Queryman is formatting locally on the client whereas Bteq receives formatted strings from Teradata.

you have to cast the numeric value to a string:

     select 0.2 (format 'Z.99') (char(4));


  <Prev Next>   <<First <Prev
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023