Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Mon, 27 Aug 2007 @ 20:44:22 GMT

  <Prev Next>  
Next> Last>>  

Subj:   Stripping numeric data in varchar(900)
From:   Schafer, Michael

I have a field that contains varchar(900) that I would need to strip only the numeric data from. If there are multiple numbers separated by any text (including spaces) I would like to capture them as separate numbers. I have included some example data below. Any help would be greatly appreciated. Thank you,

Example data:

     1234 some string
     Text 345 more junk
     35 5th stuff
     123, 5687 garbage text 26

Desired result:

     35 5
     123 5687 26

  <Prev Next>  
Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023