| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: is concat a group by function?
You don't have to wait until user-defined aggregates would be supported by 9i. Here is 8i solution:
CREATE TYPE number_list_t AS TABLE OF NUMBER;
CREATE
Function CONCAT_LIST
( lst IN number_list_t, separator varchar2)
RETURN VARCHAR2 IS
ret varchar2(1000);
MGR EMPLOYEES
------ --------------------
6 rows selected.
The question triggers some thoughts about connection between aggregates and collections...
BTW, Aloha, how is your AMS Ariphmetics Database?
In article <1IHI6.1820$vg1.151572_at_www.newsranger.com>, Mikito Harakiri says...
>
>In article <%zFI6.1690$vg1.141759_at_www.newsranger.com>, Aloha Kakuikanu says...
>>
>>SELECT
>>MGR,
>>CONCAT( EMPNO ) || ','
>>FROM SCOTT.EMP
>>group by MGR
>>
>>doesn't work, of course. Any other way to do it?
>>
>
>They'll have user defined aggregates in 9i.
>
Received on Fri May 04 2001 - 21:59:49 CDT
![]() |
![]() |