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 there better way than the call a function twice. ---- And the winner is......

RE: is there better way than the call a function twice. ---- And the winner is......

From: Duret, Kathy <kduret_at_starkinvestments.com>
Date: Wed, 3 Nov 2004 08:59:50 -0600
Message-ID: <07BA8175B092D611B1DE00B0D049A31501B0BE0C@exchange.ad.starkinvestments.com>


And the virtual magic 8 ball winner goes to Conncer who got me out from behind the eight ball!

Thanks to all. Another good suggestion that was just sent to me was a materialized view but it wouldn't have worked in my case.

Thanks to all!

Kathy

-----Original Message-----
From: Connor McDonald [mailto:hamcdc_at_yahoo.co.uk] Sent: Wednesday, November 03, 2004 3:54 AM To: Oracle L (E-mail)
Subject: Re: is there better way than the call a function twice.

try

select x, x from
 ( select ugly x from a where rownum > 0 )- this one worked very welll but

or

select x, x from
 ( select /*+ NO_MERGE */ ugly x from a ) - this one was just a hair better

hth
connor


Connor McDonald
Co-author: "Mastering Oracle PL/SQL - Practical Solutions" ISBN: 1590592174 web: http://www.oracledba.co.uk
web: http://www.oaktable.net
email: connor_mcdonald_at_yahoo.com

Coming Soon! "Oracle Insight - Tales of the OakTable"

"GIVE a man a fish and he will eat for a day. But TEACH him how to fish, and...he will sit in a boat and drink beer all day"


                                  
___________________________________________________________ALL-NEW Yahoo!
Messenger - all new features - even more fun! http://uk.messenger.yahoo.com
--
http://www.freelists.org/webpage/oracle-l



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
Received on Wed Nov 03 2004 - 08:56:33 CST

Original text of this message

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