I have a SQL server 2005 table with a varvhar(50) column that is populated with values ranging from 01 to 9999. I would like to pad each row to 5 characters with leading 0's and then prepend the column with CP so that so that all data in that column is 7 characters in the following format CPxxxxx: where xxxxx is a value between 01 and 9999.
If someone has done something like this and help would be greatly appreciated.
Thanks,
Lou
If someone has done something like this and help would be greatly appreciated.
Thanks,
Lou