SELECT TOP(1) issue_code, abc = STUFF ( (SELECT TOP(100) ',' +issue_code FROM rrf_tbl FOR XML PATH('')), 1, 1, '' ) FROM rrf_tbl GROUP by issue_code