Consider My problem..
First i'm passing the string as @Rating= '1+2,1+3,1+4,2+4,3+7' based on your query i'm able to split the substring followed by commas..ie:in this case i got 1+2 1+3 1+4 2+4 3+7 (totally 5 substrings) now iwanteed to loop these 5 substrings where i will be using another substring to split these substring like
set @tempExp=SUBSTRING(@Rating,1,CHARINDEX(',',@Rating)-1)
set @QnCode=LEFT(@tempExp,1)
set @Rating=RIGHT(@tempExp,1)
i hope u understand it clearly pls rectify...
Join Hands Change lives
Thanks & Regards
Straight Edge Society
Self-innovator, if this helps please login to Mark As Answer. | Alert Moderator