﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / T-SQL (SS2K8)  / Multpile rows in a single row / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Sun, 26 May 2013 02:48:33 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Multpile rows in a single row</title><link>http://www.sqlservercentral.com/Forums/Topic973776-392-1.aspx</link><description>Try this....SELECT DISTINCT c1.Col1, c1.Col2, STUFF((SELECT ',' + Col3 FROM Tablename c WHERE c.Col1 = c1.Col1 FOR XML PATH('')),1,1,'')FROM Tablename c1</description><pubDate>Wed, 25 Aug 2010 02:17:01 GMT</pubDate><dc:creator>Tarun Jaggi</dc:creator></item><item><title>RE: Multpile rows in a single row</title><link>http://www.sqlservercentral.com/Forums/Topic973776-392-1.aspx</link><description>[quote][b]tripri (8/23/2010)[/b][hr]Hi i got a table which has data likeTableCol1----col2----Col3X--------1-------aX--------1--------bX--------1--------cY--------2-------eY--------2--------fZ--------2-------gZ--------2-------hi should get an out put which looks likecol1---col2---col3x------1------a,b,cy------2-------e,fz------2--------g,hCan any one help me out with this...Thank you[/quote]Is this homework? what do you got so far?</description><pubDate>Mon, 23 Aug 2010 16:42:35 GMT</pubDate><dc:creator>PaulB-TheOneAndOnly</dc:creator></item><item><title>Multpile rows in a single row</title><link>http://www.sqlservercentral.com/Forums/Topic973776-392-1.aspx</link><description>Hi i got a table which has data likeTableCol1----col2----Col3X--------1-------aX--------1--------bX--------1--------cY--------2-------eY--------2--------fZ--------2-------gZ--------2-------hi should get an out put which looks likecol1---col2---col3x------1------a,b,cy------2-------e,fz------2--------g,hCan any one help me out with this...Thank you</description><pubDate>Mon, 23 Aug 2010 16:31:46 GMT</pubDate><dc:creator>tripri</dc:creator></item></channel></rss>