Archives of the TeradataForum
Message Posted: Mon, 15 Dec 2008 @ 14:40:35 GMT
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
|