I am in the process of trying to migrate a manual MS Access process over to a automated SQL process
I have every working as intended except for the last column.
Here is sample table data and then below is what I am trying to get the data to change into.
10903
1091
319
2968A
782R
Needs to look like this
10903
01091
00391
02968
00782
Any string in first column needs to be stripped down to numbers and if the string is then less then five to add zeros to the front.
I understand how the conversation takes place in Access and if had access to SQL Server 2012 or greater it would be ok.
Thoughts?
Am I looking at having to use SET and a long line of nested IF's?