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!

Converting comma separated column values to rows

Gopinath PMay 2 2016 — edited May 2 2016

Hello Guys

Help needed on Converting comma separated column values to rows...!

  

I've a table like below loaded from csv file into Oracle, I wanted to load the details table like below i.e values in Master.Project should get transformed into rows of Details.project
MASTER
IDNAMEPROJECT
101JOHNGREEN, BLUE, RED
102RAMRED, WHITE, BLACK
DETAILS
IDNAMEPROJECT
101JOHNGREEN
101JOHNBLUE
102RAMRED
102RAMWHITE
101JOHNRED
102RAMBLACK

About my SQl exp: i'm not DB guy but uses oracle SQL to write select queries/views to feed my reports.

please suggest/help

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2016
Added on May 2 2016
9 comments
7,092 views