How can I combine multiple rows into one row and have a column which contains a comma separate values?
Example: Originally my SQLresult would return the following using a simple select script like
select order_no, item_no, item_description
from orders...
order_no item_no item_description
1234 5 toaster
1234 6 hair dryer
Instead I would like to return the results into the below (having the item_description listed in the same order as the item_nos?
order_no item_nos item_descriptions
1234 5, 6 toaster, hair dryer
And could I return results like this?
order_no item_nos_descriptions
1234 5 - toaster, 6 - hair dryer
By the way I'm using SQL 2008...