Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 12 Oct 2006 @ 18:56:19 GMT


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


Subj:   TRIM and WHITE Spaces
 
From:   Bagare, Vinay

All,

I have a question on TRIM function.

I have a production table and a chararacter data type defined as CHAR(9).

There are several white spaces values in this column.

Some of them are 2,5 and some of them are 9 (like ' ', ' ' and '').

When I tried using TRIM function and grouping on this column, I find 3 entries for white spaces.

I was under impression that TRIM(FROM BOTH Col) will result in an empty string ('').

Do you happen to know why this is happening?

I am sure I am missing some thing here.

I tried using various editors to see if the values have speacial characters but in vain.

Please let me know.


Thanks,

Vinay



     
  <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