Hi,
I have a column (char type) consisting data like:
PL.EUR.51001.2003.RS.21059.RS.1605.T.1500
What I want is to based on value above to make insert into new column, but only data starting from 7th dot .
I have tried with mid function but the problem is that length of characters in column is not always same so I have data like:
PL.EUR.51001.2003.RS.21059.RS.1605.T.1500
PL.EUR.51001.2002.YU.6005.YU.1605..2100
where part of data "1605" starts on different char position, but what is for sure is that it always starts from 7th dot.
So how can I for example say :
Insert into my table(value)
select (data starting from 7th dot with length 4)
from my table 2
I have a column (char type) consisting data like:
PL.EUR.51001.2003.RS.21059.RS.1605.T.1500
What I want is to based on value above to make insert into new column, but only data starting from 7th dot .
I have tried with mid function but the problem is that length of characters in column is not always same so I have data like:
PL.EUR.51001.2003.RS.21059.RS.1605.T.1500
PL.EUR.51001.2002.YU.6005.YU.1605..2100
where part of data "1605" starts on different char position, but what is for sure is that it always starts from 7th dot.
So how can I for example say :
Insert into my table(value)
select (data starting from 7th dot with length 4)
from my table 2