you can use like thisSELECT COALESCE(LEFT(NamePart1,1) + LOWER(SUBSTRING(NamePart1,2,LEN(NamePart1))) + '-','') + LEFT(NamePart2,1) + LOWER(SUBSTRING(NamePart2,2,LEN(NamePart2)))FROM (SELECT PARSENAME(REPLACE(SURNAME,'-','.'),2) AS NamePart1,PARSENAME(REPLACE(SURNAME,'-','.'),1) AS NamePart2FROM YourTable)t
however i feel its best to do this at front end as this is a poresentation issue and you've lots of formatting functions which can leverage upon for this