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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

query using cursor

Status
Not open for further replies.

thefrstgatsby

Technical User
May 8, 2004
113
CA
I want to create a query which takes the following table:

Table 1

Row 1 Row 2
----- -----
one bcf
two wer
three wer
four wer
five xyz


And produces:

tempTable 2

Row 1 Row 2
----- -----

one bcf
two, three, four wer
five xyz


using a cursor or some other way, but it must append Row 1 values that have the same Row 2 values, by using a "," to separate them.

How can I do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top