From oracle-l-bounce@freelists.org  Wed Feb  2 14:23:10 2005
Return-Path: <oracle-l-bounce@freelists.org>
Received: from air891.startdedicated.com (root@localhost)
 by orafaq.com (8.12.10/8.12.10) with ESMTP id j12KNA54019191
 for <oracle-l@orafaq.com>; Wed, 2 Feb 2005 14:23:10 -0600
X-ClientAddr: 206.53.239.180
Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180])
 by air891.startdedicated.com (8.12.10/8.12.10) with ESMTP id j12KNAem019187
 for <oracle-l@orafaq.com>; Wed, 2 Feb 2005 14:23:10 -0600
Received: from localhost (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 1449F6C86C;
 Wed,  2 Feb 2005 14:22:15 -0500 (EST)
Received: from turing.freelists.org ([127.0.0.1])
 by localhost (turing [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 20326-04; Wed, 2 Feb 2005 14:22:15 -0500 (EST)
Received: from turing (localhost [127.0.0.1])
 by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 8FCE36CD77;
 Wed,  2 Feb 2005 14:22:14 -0500 (EST)
Message-ID: <C9995D8C5E0DDA4A8FF9D68EE666CE0702A972E1@exchsen0a1ma>
From: "Mercadante, Thomas F" <thomas.mercadante@labor.state.ny.us>
To: "'kduret@starkinvestments.com'" <kduret@starkinvestments.com>,
        "Oracle L (E-mail)" <oracle-l@freelists.org>
Subject: RE: is there a way to return multiple cursors from a query
Date: Wed, 2 Feb 2005 14:20:31 -0500 
MIME-Version: 1.0
Content-type: text/plain
X-OriginalArrivalTime: 02 Feb 2005 19:20:33.0175 (UTC) FILETIME=[43F5CA70:01C5095C]
Content-Transfer-Encoding: 8bit
X-archive-position: 15697
X-ecartis-version: Ecartis v1.0.0
Sender: oracle-l-bounce@freelists.org
Errors-To: oracle-l-bounce@freelists.org
X-original-sender: thomas.mercadante@labor.state.ny.us
Precedence: normal
Reply-To: thomas.mercadante@labor.state.ny.us
X-list: oracle-l
X-Virus-Scanned: by amavisd-new-20030616-p9 (Debian) at avenirtech.net
X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on 
 air891.startdedicated.com
X-Spam-Status: No, hits=0.1 required=5.0 tests=AWL autolearn=ham version=2.60
X-Spam-Level: 

Kathy,

Why even return the first cursor?  Why not return the second cursor with the
results of the first cursor already wrapped in the second?

Does this make sense?  What they *really* want is the results from the
second cursor.  So why not just give it to them with enough items in the
select list so they can get the data they want?

Tom

-----Original Message-----
From: Duret, Kathy [mailto:kduret@starkinvestments.com] 
Sent: Wednesday, February 02, 2005 1:56 PM
To: Oracle L (E-mail)
Subject: is there a way to return multiple cursors from a query

what I need to do is return a cursor from one query in a procedure.... no
problemo


What I need to do is :

for every ID returned in the first query returned ....use this in the where
condition of the child query.

Yes they want two separate cursors returned.  so a function is out.

The first query is intensive so I don't want to execute it twice.

This will be executed quite a bit and returns a fair amount of data.

Thanks,

Kathy







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 information and reserve the right to publish or disclose any
information you share with us.
--
http://www.freelists.org/webpage/oracle-l
--
http://www.freelists.org/webpage/oracle-l

