I have an existing view that returns data in the following format.
option_name product_id
XSMALL (2-6) 17854
SMALL (6-10) 17854
MEDIUM (10-14) 17854
LARGE 18232
How do I return this data in a comma separated field formatted like this, based on sending a product_id to the function?
XSMALL (2-6), SMALL (6-10), MEDIUM (10-14)
I am using MS SQL 2k5.