Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 28 May 2008 @ 15:26:40 GMT


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


Subj:   Re: Extracting value with Substring and position
 
From:   Pugliesi, Anthony J

Given that a column named string is your text input than the correct substr expression is

     sel
     substr(string,(position('(' in string) + 1),(position('mil' in string) -
     ( position('(' in string) +1)    )        )
     from adhoc.tdf
     ;

Hope this helps.

Tony



     
  <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