Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Vertical result with Oracle SQL?

Vertical result with Oracle SQL?

From: <georgino.no1_at_gmail.com>
Date: Tue, 11 Sep 2007 13:53:51 -0700
Message-ID: <1189544031.249987.87880@z24g2000prh.googlegroups.com>


Hi guys,
Here is what I need to get.

Columns: Id, Name, Program, cost
Data sample:

1, George, Program 1, $10
1, George, Program 2, $10
1, Peter, Program 1, $10

The result line should looks like this:
1; George, Peter; Program 1, Program 2, $30

Basically I need to concatenate Names and Programs and sum the cost for each ID

I am stuck here; any idea would be greatly appreciated

Thanks
Georgino Received on Tue Sep 11 2007 - 15:53:51 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US