Unix Technical Forum

Exists a aggregate function (Oracle9) for varchar that generate a comma separated lsit

This is a discussion on Exists a aggregate function (Oracle9) for varchar that generate a comma separated lsit within the Oracle Miscellaneous forums, part of the Oracle Database category; --> Hello, The Firebird-Database 2.1 contains a LIST function http://www.firebirdsql.org/rlsnotes/...leaseNotes.pdf ____________________________ The LIST Function Oleg Loa Dmitry Yemanov (v.2.1) This ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-27-2008, 11:13 AM
Norbert Winkler
 
Posts: n/a
Default Exists a aggregate function (Oracle9) for varchar that generate a comma separated lsit

Hello,

The Firebird-Database 2.1 contains a LIST function

http://www.firebirdsql.org/rlsnotes/...leaseNotes.pdf
____________________________
The LIST Function
Oleg Loa
Dmitry Yemanov
(v.2.1) This function returns a string result with the concatenated
non-NULL values from a group. It returns
NULL if there are no non-NULL values.
FormatData Manipulation Language (DML)
44
<list function> ::=
LIST '(' [ {ALL | DISTINCT} ] <value expression> [',' <delimiter value>
] ')'
<delimiter value> ::=
{ <string literal> | <parameter> | <variable> }
____________________________

Is there any equivalent in ORACLE 9?

It seems that there is a COLLECT function in Oracle 10i
(http://www.adp-gmbh.ch/blog/2005/march/28.html)
But not so easy to use like LIST in FireBird.


--
Norbert
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-27-2008, 11:13 AM
Terry Dykstra
 
Posts: n/a
Default Re: Exists a aggregate function (Oracle9) for varchar that generate a comma separated lsit

"Norbert Winkler" <norbert.winkler1@gmx.de> wrote in message
news:1v8hjno5av84.8ejksko31ji4$.dlg@40tude.net...
> Hello,
>
> The Firebird-Database 2.1 contains a LIST function
>
> http://www.firebirdsql.org/rlsnotes/...leaseNotes.pdf
> ____________________________
> The LIST Function
> Oleg Loa
> Dmitry Yemanov
> (v.2.1) This function returns a string result with the concatenated
> non-NULL values from a group. It returns
> NULL if there are no non-NULL values.
> FormatData Manipulation Language (DML)
> 44
> <list function> ::=
> LIST '(' [ {ALL | DISTINCT} ] <value expression> [',' <delimiter value>
> ] ')'
> <delimiter value> ::=
> { <string literal> | <parameter> | <variable> }
> ____________________________
>
> Is there any equivalent in ORACLE 9?
>
> It seems that there is a COLLECT function in Oracle 10i
> (http://www.adp-gmbh.ch/blog/2005/march/28.html)
> But not so easy to use like LIST in FireBird.
>
>
> --
> Norbert


Other databases like SQLAnywhere have a list() function, but Oracle doesn't.
Do a google search on 'oracle list function' and you can find examples of
user defined functions.
--
Terry Dykstra


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-27-2008, 11:13 AM
Carlos
 
Posts: n/a
Default Re: Exists a aggregate function (Oracle9) for varchar that generate acomma separated lsit

On 25 jun, 16:34, Norbert Winkler <norbert.winkl...@gmx.de> wrote:
> Hello,
>
> The Firebird-Database 2.1 contains a LIST function
>
> http://www.firebirdsql.org/rlsnotes/...leaseNotes.pdf
> ____________________________
> The LIST Function
> Oleg Loa
> Dmitry Yemanov
> (v.2.1) This function returns a string result with the concatenated
> non-NULL values from a group. It returns
> NULL if there are no non-NULL values.
> FormatData Manipulation Language (DML)
> 44
> <list function> ::=
> LIST '(' [ {ALL | DISTINCT} ] <value expression> [',' <delimiter value>
> ] ')'
> <delimiter value> ::=
> { <string literal> | <parameter> | <variable> }
> ____________________________
>
> Is there any equivalent in ORACLE 9?
>
> It seems that there is a COLLECT function in Oracle 10i
> (http://www.adp-gmbh.ch/blog/2005/march/28.html)
> But not so easy to use like LIST in FireBird.
>
> --
> Norbert


You may take a look here

http://carlosal.wordpress.com/2007/0...ets-a-cadenas/

It's only SQL, but I like it!

HTH.

Cheers.

Carlos.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-27-2008, 11:13 AM
Krzysztof =?iso-8859-2?Q?Jamr=F3z?=
 
Posts: n/a
Default Re: Exists a aggregate function (Oracle9) for varchar that generate a comma separated lsit

Dnia Wed, 25 Jun 2008 16:34:39 +0200, Norbert Winkler napisa³(a):

> The LIST Function
> Oleg Loa
> Dmitry Yemanov
> (v.2.1) This function returns a string result with the concatenated
> non-NULL values from a group. It returns
> NULL if there are no non-NULL values.
>
> Is there any equivalent in ORACLE 9?
>
> It seems that there is a COLLECT function in Oracle 10i
> (http://www.adp-gmbh.ch/blog/2005/march/28.html)
> But not so easy to use like LIST in FireBird.


You can check stragg function (it is user defined aggregate function).

--
Krzysztof Jamróz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-27-2008, 11:13 AM
Mark D Powell
 
Posts: n/a
Default Re: Exists a aggregate function (Oracle9) for varchar that generate acomma separated lsit

On Jun 25, 2:24*pm, Krzysztof Jamróz <SpAMkrzyh000J...@ZLYo2.pl>
wrote:
> Dnia Wed, 25 Jun 2008 16:34:39 +0200, Norbert Winkler napisa³(a):
>
> > The LIST Function
> > Oleg Loa
> > Dmitry Yemanov
> > (v.2.1) This function returns a string result with *the concatenated
> > non-NULL values from a group. It returns
> > NULL if there are no non-NULL values.

>
> > Is there any equivalent in ORACLE 9?

>
> > It seems that there is a COLLECT function in Oracle 10i
> > (http://www.adp-gmbh.ch/blog/2005/march/28.html)
> > But not so easy to use like LIST in FireBird.

>
> You can check stragg function (it is user defined aggregate function).
>
> --
> Krzysztof Jamróz


Also of possible interest on the topic of creating or extracting comma
delimted lists would be the dbms_utility.table_to_comma and
comma_to_table procedures for unloading and loading pl/sql tables
(arrays).

HTH -- Mark D Powell --
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com