Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL 2000 Convert multiple rows into one row and seperate it with comma

$
0
0

Hi All

I have a temp table on SQL 2000 getting populated on the fly as shown below.

Clmname

----------

201401

201403

201404

201405

201406

I need to use this resultset into one row as shown below and use this in a dynamic query. 

(201401 , 201403 , 201404 , 201405 , 201406)

Thanks a lot in advance



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>