I have a query that may return a variable number of rows depending on the criteria (maybe 5, maybe 10, etc). The query only returns on column -- let's call it company name.
Instead of returning multiple rows, I would like to edit my query to return 1 row that that rolls all of the results into a comma seperated list of values.
For example (for the company name column), instead of
abc comp
xyz comp
I would like
abc comp,xyz comp
What is the most straight forward and effecient way to accomplish this?
Thank You.
Instead of returning multiple rows, I would like to edit my query to return 1 row that that rolls all of the results into a comma seperated list of values.
For example (for the company name column), instead of
abc comp
xyz comp
I would like
abc comp,xyz comp
What is the most straight forward and effecient way to accomplish this?
Thank You.