Hai,
Use this
select substring('sub001-001',charindex('-','sub001-001')+1,len('sub001-001'))
If it is a column then use this
select substring(materialcod,charindex('-',materialcod)+1,len(materialcod))
Helen
--------------------------------
Are you a born again. He is Jehova Jirah unto me