If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Equivalent to the mySQL function GROUP_CONCAT in Oracle 8i ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Sep 2004
Posts: 1
Equivalent to the mySQL function GROUP_CONCAT in Oracle 8i ?

Hi all,

I would like to know if does exist a function in Oracle 8i which would be equivalent to the mySQL function GROUP_CONCAT.
This function aim would be to CONCAT in a Group by clause selection all possible values of a column in each group by combination.
If it doesn't exist, do you know a way to do this in SQL ?

Thanks a lot in advance,
Best regards
Reply With Quote
  #2 (permalink)  
Old
Registered User
 
Join Date: Dec 2003
Posts: 2
Quote:
I would like to know if does exist a function in Oracle 8i which would be equivalent to the mySQL function GROUP_CONCAT.
This function aim would be to CONCAT in a Group by clause selection all possible values of a column in each group by combination.
I believe this is possible, but I haven't tried it myself. See the following article:
Oracle.com Tip of the Week: Program Your Own Aggregate Functions
http://www.oracle.com/oramag/code/tips2001/052001.html
This is also possible in Oracle 9i:
Increase code reuse with Oracle user-defined aggregate functions
http://builder.com.com/5100-6388-1058914.html
However, I still haven't found a way to make this work for CLOB type columns. Any suggestions are welcome.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On