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

Home -> Community -> Usenet -> c.d.o.server -> Re: user-defined group function

Re: user-defined group function

From: John Chiu <johnymc_at_netscape.com>
Date: Sun, 12 Sep 1999 05:25:18 -0400
Message-ID: <37DB717E.79634D53@netscape.com>


(1) create the function as follows:

Create or replace function my_group_func(id number) return varchar2 as
 cursor cur_tablea(input_id) is

      select name from table_a where id = input_id; result varchar2(500);

select distinct id, my_group_func(id) "Concat" from table_a;

it should come up with what you want.

John Chiu
johnc_at_relsol.com
johnymc_at_netscape.net Received on Sun Sep 12 1999 - 04:25:18 CDT

Original text of this message

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