Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Fri, 11 Jan 2013 @ 13:46:03 GMT


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


Subj:   How to filter data: numeric vs alpha
 
From:   Parvathareddy, Vinod

Hi Experts,

I have a question.

In my Table I have a column with datatype varchar and data have numeric and non-numeric data

Like

     100,abc,200,degggg,33000 etc

I want to display like numeric to numeric and non-numeric to null

Like

     100
     Null
     200
     Null
     33000

If I tried with like

     Sel case
         when col1 is between 0 to 100000
         then col1
         else null
         end
     from tablename

I am getting an error.


Thanks

Vinod



     
  <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