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

rows to columns

Status
Not open for further replies.

VeryGoodGirl

Programmer
May 9, 2007
7
US
I have the example data:

A1234 RX9999
A1234 RX8989
A1234 RX1234
A5674 RX2
A5674 RX999

I need like:

A1234 RX9999 RX8989 RX1234
A5674 RX2 RX999


All fields are dynamic. Does anyone know how to pivot this in a query? I have done it with a procedure and a temporary table, but that seems like so much overhead.

Thank you!
 
Check out this FAQ. It should be what you are looking for.

faq183-2146

- Paul
- If at first you don't succeed, find out if the loser gets anything.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top