Categories
- All Categories
- Oracle Analytics Learning Hub
- 30 Oracle Analytics Sharing Center
- 19 Oracle Analytics Lounge
- 238 Oracle Analytics News
- 45 Oracle Analytics Videos
- 16K Oracle Analytics Forums
- 6.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 88 Oracle Analytics Trainings
- 15 Oracle Analytics & AI Challenge
- Find Partners
- For Partners
How to take integers from a column which are in different positions in each raw in OAC?
Eg : first raw value is 'abcdefgh, (2291)' and 2nd raw is 'abcde, (8124) abcdefg' and 3rd raw is 'abc, (1030) 2lmnop'. I need to take the first 2 integer after bracket. Substring is not working bcoz each raw integer is in different position. Is there any other way in OAC?
Answers
-
Hi,
You are almost there with the usage of SUBSTRING , all you need now is to use LOCATE to find the position of the bracket, and use that for your substring.
Use LOCATE as the beginning of the substring, with a +1 to not get the bracket but just the numbers after.
1
