March 16, 2012 at 9:06 pm
Written a query which returns as shown below
BagalkotBadamiR.B.Patil
BagalkotBadamiSunil Kambar
The result expected is
BagalkotBadamiR.B.Patil,Sunil Kambar
how to do this?
March 16, 2012 at 9:54 pm
Hi and welcome to SSC. Please take a look at the first link in my signature for best practices on posting questions. It would make this lot easier to answer with ddl.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
March 16, 2012 at 11:27 pm
manjunath.dacca (3/16/2012)
Written a query which returns as shown belowBagalkotBadamiR.B.Patil
BagalkotBadamiSunil Kambar
The result expected is
BagalkotBadamiR.B.Patil,Sunil Kambar
how to do this?
You'll find your answer at the following excellent link written by wayne Sheffield.
http://www.sqlservercentral.com/articles/comma+separated+list/71700/
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply