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!

select query with rows into columns.

Status
Not open for further replies.

kingstonr

Programmer
Dec 5, 2005
26
US
Hi,

I am having my query result like below.

ID PID Pname Class
----------------------------
1 P1 Pname Class1
1 P1 Pname Class2
1 P1 Pname Class3

Now I want that three rows into one row like below

ID PID Pname Class1 Class2 Class3
------------------------------------------
1 P1 Pname Class1 Class2 Class3

can somebody help me out in this.


Thx
kingston
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top