Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2000 > SQL Server 2000
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 12th, 2005, 02:25 PM
Authorized User
 
Join Date: Mar 2005
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default need comma seperated values in select

how can i get the comma seperated values

i have a table like this

ID Value
1 A
1 B
1 C
2 D
3 E
4 F
5 G


I WANT THE RESULT LIKE THIS

ID VALUE
1 A,B,C
2 D,E,F,G


CAN ANYONE HELP ME

__________________
SQL Technical Consultant
 
Old April 12th, 2005, 03:24 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default


http://www.sqlteam.com/item.asp?ItemID=256


Not a good idea to ask question that you already know answer...

 
Old April 12th, 2005, 07:01 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes, you got to stick to such stored procs, there is no any such defined method of doing that. May be you can search on it in this forum. This was discussed a long back here. (search for Jeff Mason's posts, you will find one)

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
SELECT on values of a comma sep. list polarbear MySQL 1 May 13th, 2008 08:46 AM
Comma Separated values aldwinenriquez SQL Server 2005 3 June 1st, 2007 08:52 PM
Sort by a value that's a comma seperated list medic XSLT 0 June 7th, 2006 09:52 AM
Select Query for Comma separated IDs veeruu SQL Language 3 February 9th, 2006 03:17 AM
Select from Comma Separated Values sasidhar79 SQL Server 2000 2 March 28th, 2005 06:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.