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!

Split specific value in a column which is delimited by a special symbol

shuvroJul 16 2020 — edited Jul 17 2020

Hello everyone. I'm working on 18c Oracle Database.

From other source, I have to extract a table which have three columns where particular column value are separated in pipe (|) delimiter.The table looks like following :

ID

DESC

VALUE

ID1A | B | C10|20|30
ID2A | D | A50|60|70
ID3C | D | A100|200|300
ID4A | A | D | B99|88|77|50

My requirement is to find only A value and resultant output will be :

OUTPUT :

ID

A_DESC

A_VAL

ID1A10
ID2A | A50|70
ID3A300
ID4A | A99|88

Any idea to return this output using sql (regular expression or any analytics fnc) for this data pattern ?

Thanks in advance.

Comments
Post Details
Added on Jul 16 2020
15 comments
2,359 views