• I think this might also work. A bit of a hack though - the split is much more elegant.

    select replace(substring(storeNumber,10,7),'-','')

    from dbo.StoreNumberTest

    If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.