Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Mon, 15 Dec 2008 @ 14:40:35 GMT


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


Subj:   Re: Regarding index function
 
From:   Varun Kore

I am not sure if this is the right way to do it but this will give you the result you need.

The only problem is that if you want to find the 3rd 4th or 5th occurrence then this will become very long.

     SEL INDEX( SUBSTR('Take the first four characters', INDEX('Take the first
     four characters' ,'a') +1, CHAR('Take the first four characters')), 'a') +
     INDEX('Take the first four characters' ,'a')

Thanks and Regards

Varun Kore,
Associate System Engineer



     
  <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