Hello All,
There is a column in sql table which contains the data like:
RA-100 R1
RA-200.02.01 ORIGINAL
RA-200.02 R1
GSOP 2709 ORIG
GSOP 2703A ORIGINAL
SOP 112 R 13
SOP 117A R1
There is some uniformity in the data but not a lot. I need to parse the data in three columns as:
(First column - all chars from left till space (' ') or '-'
second column - all chars from space/'-' till first occurance of space
third column - the revision number)
Cateory Type Revision
RA 100 R1
RA 200.02.01 ORIGINAL
RA 200.02 R1
GSOP 2709 ORIG
GSOP 2703A ORIGINAL
SOP 112 R 13
SOP 117A R1
May I know how would I achieve this? Do I have to use Charindex function?
Thanks a lot,
-techiPA
There is a column in sql table which contains the data like:
RA-100 R1
RA-200.02.01 ORIGINAL
RA-200.02 R1
GSOP 2709 ORIG
GSOP 2703A ORIGINAL
SOP 112 R 13
SOP 117A R1
There is some uniformity in the data but not a lot. I need to parse the data in three columns as:
(First column - all chars from left till space (' ') or '-'
second column - all chars from space/'-' till first occurance of space
third column - the revision number)
Cateory Type Revision
RA 100 R1
RA 200.02.01 ORIGINAL
RA 200.02 R1
GSOP 2709 ORIG
GSOP 2703A ORIGINAL
SOP 112 R 13
SOP 117A R1
May I know how would I achieve this? Do I have to use Charindex function?
Thanks a lot,
-techiPA