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

Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle SQL Query (help/question about Oracle "HINTS")

Re: Oracle SQL Query (help/question about Oracle "HINTS")

From: Eric Parker <eric.parkerthedross_at_virgin.net>
Date: Thu, 14 Aug 2003 11:27:33 +0100
Message-ID: <quJ_a.12215$yl6.6634@newsfep4-winn.server.ntli.net>


Antony wrote:
> Hi, I have the following query that gives the correct answer.
>
> SELECT a.f1,a.f2,a.f3
> FROM a,b
> WHERE a.f7=16
> AND fn_calculateMovingRate(a.f1,b.fAX) > 65
> AND fn_calculateDAR(a.f1,b.fDAR) > 16
> AND a.f7=16
> ORDER BY a.f1 ASC, a.f2 ASC, a.f3 ASC;
>

< snip >
> Thank you
> Tony

Tony

Is the SQL as you intended ?
You have a.f7=16 twice and I was expecting a JOIN to table/view b.

eric

--

Remove the dross to contact me directly
Received on Thu Aug 14 2003 - 05:27:33 CDT

Original text of this message

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