Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Sat, 27 Aug 2016 @ 08:12:36 GMT


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


Subj:   Re: Eliminate rows where data is having any character other than [0-9]
 
From:   Vinay Bagare

I think you could REGEX to work around this problem.

     sel *
     from (sel
              'Vinay? T1
             ,'1Vinay1aa' T2
             ,'111' T3
             ,'1a11a' T4
             ,'Vinay1aa' T5)  FUBAR

     WHERE REGEXP_SIMILAR( T5, '(^[0-9].+)|($[0-9].+)|.[0-9].+' , 'i') = 1;

In the above SQL, change Column names to test whether numeric value exists. If the statement evalutes to true, then you will see the result set.

In this case, you should see an output for T2, T3, T4 and T5 column values.


Best,

Vinay Bagare



     
  <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: 24 Jul 2020