Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Extract portion of strings based on the positions

KVBJun 3 2013 — edited Jun 3 2013
Hi

My requirement is simple.I get the below data from the source file.

My data looks like this.Sometimes I get a space,one tab space,two tab space.It's ambiguous.

FIRSTWORD SECONDWORD THIRDWORD FOURTH (o/p=FIRSTWORD SECONDWORD THIRDWORD)
FIRSTWORD SECONDWORD THIRD WORD(o/p=FIRSTWORD SECONDWORD THIRD )


If it is something fixed,then I can write using INSTR and SUBSTR and it worked.But how we can handle multiple cases all at a time.

Thanks in advance
KVB
This post has been answered by BluShadow on Jun 3 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2013
Added on Jun 3 2013
3 comments
120 views