Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Tue, 16 Jul 2013 @ 16:15:57 GMT


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


Subj:   Re: Checking for numeric characters in each row of a particular column
 
From:   Babu, Mahesh

You could try something like

     CASE WHEN UPPER(colname) = LOWER(colname)
          THEN CASE WHEN CHARACTERS(TRIM(colname)) BETWEEN 1 AND 6
                    THEN 'Y'
                    ELSE 'N' END
          ELSE 'N' END   AS Six_Char_Numeric_IND


     
  <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