I am trying create a stored procedure to break a part a column and put it into 4 seperate fields.
The table looks something like this:
Route ID User Prospect Temp
-----------------------------------------
null null null null 5-W58-DJP-P
I want to it to end up like this
Route ID User Prospect Temp
-----------------------------------------
5 W58 DJP P null
I have no clue where to even start.
Also is there a way to check if there actually 4 parts to this 5-W58-DJP-P. So say something like 5-DJP-P it would return 0 or put error in another column. I know its a lot. I will be researching in the meantime. Thanks in advance.
AJ
If at first you do not succeed, cheat!
The table looks something like this:
Route ID User Prospect Temp
-----------------------------------------
null null null null 5-W58-DJP-P
I want to it to end up like this
Route ID User Prospect Temp
-----------------------------------------
5 W58 DJP P null
I have no clue where to even start.
Also is there a way to check if there actually 4 parts to this 5-W58-DJP-P. So say something like 5-DJP-P it would return 0 or put error in another column. I know its a lot. I will be researching in the meantime. Thanks in advance.
AJ
![[americanflag] [americanflag] [americanflag]](/data/assets/smilies/americanflag.gif)
If at first you do not succeed, cheat!