I have a table with a column data as below:
MASTERDATA-8.009.9.9.1
CHILDDATA-9.007.1.1.1
MASTERDATA-2.003.1.1.2
I want my output as two columns :
COlumn1 Column2
MASTERDATA.009 8.9.9.1
CHILDDATA.007 9.1.1.1
MASTERDATA.003 2.1.1.2
Sample Table Script:
Create Table ParseData
(
ColumnToParse Varchar(50)
)
Insert into ParseData values('MASTERDATA-8.009.9.9.1')
Insert into ParseData values('CHILDDATA-9.007.1.1.1')
Insert into ParseData values('MASTERDATA-2.003.1.1.2')