I have to write a select query to get the value from a comma delimited column based on the position. When i say position means every value between comma considered as one position.
Example:
Source table 'alphabets' has one column with value as below
Column1 abc,defg,hi,j,kl,mno,pqr,st,u,v,wx,yz
Now i have to select the 7th position value which is 'pqr' as my output in SQL Server 2012.
I have came up with temporary solution for the consistent length values but need help for selecting the inconsistent length values.
Can anyone help me on this scenario?
Thanks in Advance!!