I'm extracting possible values from a description field in Oracle. There are thousands of them and I thought of doing it using SQL.
The issue is possible values are embedded in the description after the word "Acceptable values:" OR "Acceptable value:"
Also, the values have code and description, for ex.
00=No code
01=Additional code
I need the possible values extracted.
This is in Oracle table.
This is the source table:
Table1
VAR_NAME VAR_DESC
Test 1 Code identifying test 1
Acceptable values:
00=No code
01=Additional Code
Test 2 Code identifying test 2
Acceptable value:
44=No code
This is the output table:
VAR_NAME VAR_DESC CODE DESCRIPTION
Test 1 Code identifying test 1 00 No code
Acceptable values:
00=No code
01=Additional Code
Test 1 Code identifying test 1 01 Additional Code
Acceptable values:
00=No code
01=Additional Code
Test 2 Code identifying test 2 44 No code
Acceptable value:
44=No code
Is there a way in Oracle to extract this kind of information?