i have a table with unique orderID. i have another table with tech information, and this table also has orderID. however, there can be multiple rows in the tech table per orderID.
is it possible to SELECT all of the tech names from the tech table as a string separated by commas? so, if there are two techs for order X, the following would be returned:
select column1, column2, column3, (select techName from techTable where techTable.orderID = orderTable.orderID) from orderTable
i can't do the above because techName can have multiple results. is it possible to format the multiple results to return 1 result from the subquery?
sql server 2005