Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: user-defined group function
(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
![]() |
![]() |