Home » SQL & PL/SQL » SQL & PL/SQL » Printing the column as rows in a table with the help of group by
Printing the column as rows in a table with the help of group by [message #246863] Fri, 22 June 2007 04:51 Go to next message
rolex.mp
Messages: 161
Registered: February 2007
Senior Member
I have a table, "sample" with data like

hz db/sql a.sql
hz db/sql b.sql
hz db/sql c.sql
hr db d.sql
hr sql a.sql

I need the output to be like


hz db/sql a.sql,b.sql,c.sql
hr db d.sql
hr sql a.sql

How can i do this ?
Re: Printing the column as rows in a table with the help of group by [message #246865 is a reply to message #246863] Fri, 22 June 2007 04:54 Go to previous message
Michel Cadot
Messages: 64152
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Search for pivot.
There are several same questions per week.
This one is closed.
./fa/448/0/
Regards
Michel
Previous Topic: spool into file
Next Topic: display all dates of monday for given year
Goto Forum:
  


Current Time: Sat Dec 10 10:40:20 CST 2016

Total time taken to generate the page: 0.16661 seconds