Tom writes "Hi,I’m not sure if this is possible but a friend suggested you guys might be able to help.I have a query which looks like...selectcountry,region,count(H.hotelid) as hotels_in_region,(select hotelcode from table where id = H.hotelid) as hotel_codesfrom tablegroup by....i need my results to look something like...UK N.Yorkshire 4 102,103,104,105UK Surrey 2 1010,1457UK Sussex 3 145,156,145
With the (select hotelcode from table where id = H.hotelid) returning a single varchar concatenated string of the results.Any ideas???I’m using SQL Server 2000Thanks"