I have a 3 part key that look like:
1234567*AWD*2017/FA
1234345*AWD2*2017/FA
1234555*BDD09*2017/FA
I'm having trouble pulling only the middle value between the 2 delimiters (*) into my report. After trying all sorts of methods, it keeps including the trailing *. When I tried using the first 4 characters in the last component (2017/FA for example), I got some kind of index error. As you can see, the delimited value is not always the same length, although its maximum length is 5.
What's the most straight forward way to do this in a select statement in SQL Server.
Thank you.
1234567*AWD*2017/FA
1234345*AWD2*2017/FA
1234555*BDD09*2017/FA
I'm having trouble pulling only the middle value between the 2 delimiters (*) into my report. After trying all sorts of methods, it keeps including the trailing *. When I tried using the first 4 characters in the last component (2017/FA for example), I got some kind of index error. As you can see, the delimited value is not always the same length, although its maximum length is 5.
What's the most straight forward way to do this in a select statement in SQL Server.
Thank you.