I have a string with codes that seperated with a commas,
example:
@inputText = "1,2,3,4,5"
and i need a convert to:
@outputText = "apple, peach, orange, banana, onion"
i have codes table:
id name
-- ----
1 apple
2 peach
3 orange
4 banana
5 onion
i am using sql server 2008
i need the stored procedure code that doing it, thanks.