Here is the final query:
Code:
SELECT HomeCareAgencies.*,
((SELECT DISTINCT',' + Services
FROM ILCounties
WHERE HomeCareAgencies.Mnemonic = ILCounties.Mnemonic
FOR XML PATH('')))AS ILService,
((SELECT DISTINCT ',' + County
FROM ILCounties
Leave a comment: