dbTalk Databases Forums  

sql question

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss sql question in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Akimeu
 
Posts: n/a

Default sql question - 11-22-2006 , 03:59 PM






hi,

i need some help with this. basically, what I need is to select all of the
rows from one table in a cell

ie
col1 col2
nam1 a
nam1 b
nam1 c
nam2 a
nam2 b

I need to make it look like

nam1 a,b,c
nam2 a,b

thanks for your assistance...




Reply With Quote
  #2  
Old   
Razvan Socol
 
Posts: n/a

Default Re: sql question - 11-23-2006 , 04:00 AM






Hello, Akimeu

See: http://www.projectdmx.com/tsql/rowconcatenate.aspx
or:
http://databases.aspfaq.com/general/...ingle-row.html

Razvan


Reply With Quote
  #3  
Old   
Madhivanan
 
Posts: n/a

Default Re: sql question - 11-23-2006 , 07:41 AM




Akimeu wrote:
Quote:
hi,

i need some help with this. basically, what I need is to select all of the
rows from one table in a cell

ie
col1 col2
nam1 a
nam1 b
nam1 c
nam2 a
nam2 b

I need to make it look like

nam1 a,b,c
nam2 a,b

thanks for your assistance...

http://sqljunkies.com/WebLog/amachan...10/5065.aspx?P...


Madhivanan



Reply With Quote
  #4  
Old   
Madhivanan
 
Posts: n/a

Default Re: sql question - 11-23-2006 , 07:42 AM




Razvan Socol wrote:
Quote:
Hello, Akimeu

See: http://www.projectdmx.com/tsql/rowconcatenate.aspx
or:
http://databases.aspfaq.com/general/...ingle-row.html

Razvan

http://sqljunkies.com/WebLog/amachan...10/5065.aspx?P...


Madhivanan



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.