I have one field in SQL Server containing section, township and range information, each separated by dashes; for example: 18-84-7
. I'd like to have this information broken out by each unit, section as one field, township as one field and range as one field, like: 18 84 7
.
The number of characters vary. It's not always 2 characters or 1 character per unit, so I believe the best way is to separate by the dashes, but I'm not sure how to do this. Is there a way to do this can be done in SQL Server?
Thanks!