I have 2 tables:
Orders
order_id order_total
----------------------
1 150
2 230
Items
order_id item_number
-----------------------
1 abc
1 foo
2 123
2 bar
2 test
I'd like to join both tables and concatenate the item_number
column, so the results will looks like this:
order_id order_total item_number_concat
---------------------------------------------
1 150 abc, foo
2 230 123, bar, test
What's a way to do this in SQL Server 2008?