日期:2014-05-17 浏览次数:20513 次
SELECT a.col_date ,
a.col_seq_no ,
STUFF(( SELECT ',' + request_no
FROM tb b
WHERE b.col_date = a.col_date
AND b.col_seq_no = a.col_seq_no
FOR
XML PATH('')
), 1, 1, '') 'request_no'
FROM tb a
GROUP BY a.col_date ,
a.col_seq_no