Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to display Row values in a single column ?

Status
Not open for further replies.

mimi2

Technical User
Apr 2, 2002
407
CA
Hi,
I have this table:
id value
1 neg
1 plus
3 neg
2 pos
1 nil
2 nil

i would like to transform it to:
id value
1 neg,plus,nil
2 pos,nil
3 neg
The order is very important.

I am looking for a solution without a cursor if possible.
I looked at this poste (thread183-774971 could not adapt it to my situation since i don't know in advance how many values an individual might have.

Thanks for any help.
 
I had to use cursors and it is sloooooo
Does any one have an idea ? thanks a lot.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top