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!

How to split a string into multiple rows and keep them attached to an ID

2811415Dec 9 2014 — edited Dec 11 2014

I have  a data request where I have two columns, one is an Parent_ID column with a single value and then there is a Child_ID, where multiple ID's can be entered into the column.  I need to be able to separate the Child_ID ID's and keep them attached to their Parent ID.

What I have:

Parent_IDChild_ID
276400,265,500
3003120,3003

What I need:

Parent_IDChild_ID
276400
276265
276500
3003120
30033003

Any suggestions?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2015
Added on Dec 9 2014
8 comments
2,258 views