Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 11 Jan 2011 @ 10:46:01 GMT


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


Subj:   Re: Converting string to a number: help needed
 
From:   Minakshi Swami

Hi,

You can modify case for excluding special chars

     case when columnname between '0' and '9'
          then cast(columnname as decimal(10,4)) else 0 end


     
  <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