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: is it possible to use a function to... SOLUTION 1

RE: is it possible to use a function to... SOLUTION 1

From: Duret, Kathy <kduret_at_starkinvestments.com>
Date: Fri, 25 Feb 2005 10:47:55 -0600
Message-ID: <5EAB052DE9A3BD4D84E6AE8EE3CCA7E5B7F026@sneetch.ad.starkinvestments.com>


select * from alias
where symbol in ( select *
from THE ( select cast( symbol_in_list(ALL_SYMBOLS_FOR('FORA-NA' )) as symboltableType ) from dual ) )  

Ok. This works. I created a function called all_symbols_for which passes in the symbol and passes out all the values in varchar2 that I need.

then followed the ask Tom advice. Weird, I looked there first and nothing came up.... Glad someone could find it.

Tom,

I am still going to try what you sent me this afternoon. I will post that if I get it working....

Thanks to All.

The pipeline function would have been optimal... but I am on 8i.

Lots of good suggestions.

Have a great weekend EVERYONE... The virtual beers are on me!

Kathy

-----Original Message-----

From: Jacques Kilchoer [mailto:Jacques.Kilchoer_at_quest.com] Sent: Thursday, February 24, 2005 5:44 PM To: Duret, Kathy; Oracle L (E-mail)
Subject: RE: is it possible to use a function to

Ask Tom Kyte:
varying elements in IN list
http://asktom.oracle.com/pls/ask/f?p=4950:8:8321215185943122431::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:110612348061 or
http://tinyurl.com/4u6fc

-----Original Message-----

Duret, Kathy

8.1.7.4 Solaris 9
What I want to do is build a In list and feed it to a query:

select * from test2 where
symbol in ( select test_function('IBM') symbol from dual);

This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained herein are not an offer to sell, or a solicitation of an offer to buy, any securities or other instruments. The information has been obtained or derived from sources believed by us to be reliable, but we do not represent that it is accurate or complete. Any opinions or estimates contained in this information constitute our judgment as of this date and are subject to change without notice. Any information you share with us will be used in the operation of our business, and we do not request and do not want any material, nonpublic information. Absent an express prior written agreement, we are not agreeing to treat any information confidentially and will use any and all informati  on and reserve the right to publish or disclose any information you share with us.

--
http://www.freelists.org/webpage/oracle-l
Received on Fri Feb 25 2005 - 11:51:03 CST

Original text of this message

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