Hi everyone,
I am working on a project where i have encounter such problems:
Data samples:
LA-1-2,
LA-1-2-33,
LA-1-22-333-4444,
LA-2-3,
LA-12-34,
LA-123-45-67
..
with upto 8 dashes
Objective:
I need to find the values behind each dashes into multiple columns in orders.
[e.g LA-1-2-33 will have columnA = 1,columnB = 2,columnC=33...etc.].
Since there are alot of situations,i dont know how to query it. [there is a way to do it by using declare & count but very tedious].
*im new to mssql. Please elaborate as much as possible if you have "advance" queries like create functions.
Thanks Very Much! =)