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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: simple problem

RE: simple problem

From: Naveen Nahata <naveen_nahata_at_mindtree.com>
Date: Tue, 20 Aug 2002 08:33:36 -0800
Message-ID: <F001.004B9FD5.20020820083336@fatcity.com>


I dont think any generic SQL query can do it. What you can do is write a function which takes the SO_TRN_ID as an argument and returns the concatenated string.  

Then you can use the function to get the string.  

SELECT function_name(SO_TRN_ID) as DESCRIPTION from dual;  

HTH
Naveen

-----Original Message-----
Sent: Tuesday, August 20, 2002 7:23 PM
To: Multiple recipients of list ORACLE-L

Hi Lists!
 I have one simple problem. My query is following

SELECT SOD.DESCRIPTION
FROM
SO_TRN_DETAIL SOD
WHERE
SOD.SO_TRN_ID =90
and result is :
 PREM_NET

 TAX_SPF
 TAX_SUR
 FEE_PDCR
 FEE_INSP

 PREM_GROSS
 COM_GROSS
 COM_PDCR   I want to concatenate all strings in a single string and want to display as a single record using SQL. I had seen solution somewhere but i can not search in archive.
How to do that?  

Thanks in advance ...
Shishir Kumar Mishra
Agni Software (P) Ltd.
www.agnisoft.com



Vidya Dadaati Viniyam
   

--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Naveen Nahata
  INET: naveen_nahata_at_mindtree.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing). Received on Tue Aug 20 2002 - 11:33:36 CDT

Original text of this message

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