[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Parsing data in oracle sql using substr

Posted on 2011-03-07
1
Medium Priority
?
387 Views
Last Modified: 2012-05-11
Trying to parse data in a field

data has the following C3,5,35

need it to look like this

Repair Code1     Repair Code 2      Repair Code 3
C3                        5                         35

select
REGEXP_SUBSTR (NVL (historical_separate.work_done, active_separate.work_done),'[^,]+') "Repair Code1",  What are the next statements to get repair code 2 and repair code 3?

Thanks.



0
Comment
Question by:JDay2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 74

Accepted Solution

by:
sdstuber earned 2000 total points
ID: 35060436
REGEXP_SUBSTR( nvl(historical_separate.work_done, active_separate.work_done),'[^,]+') "Repair Code1",
REGEXP_SUBSTR( nvl(historical_separate.work_done, active_separate.work_done),'[^,]+',1,2) "Repair Code2",
REGEXP_SUBSTR( nvl(historical_separate.work_done, active_separate.work_done),'[^,]+',1,3) "Repair Code3"
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'm trying, I really am. But I've seen so many wrong approaches involving date(time) boundaries I despair about my inability to explain it. I've seen quite a few recently that define a non-leap year as 364 days, or 366 days and the list goes on. …
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

650 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question