Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 08 Jan 2004 @ 11:42:22 GMT


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


Subj:   Re: How to remove 'spaces' in a telephone number field using Teradata SQL
 
From:   Agarwal, Rachana

Mike,

Try using this( this can be used to remove spaces from one place only ) :-

select trim(substring('01234 56789' ,1,index( '01234 56789',' ')) ) ||
trim(substr('01234 56789',index( '01234 56789',' ')))

Regards,

Rachana



     
  <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