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 -> Q: Conditions order in WHERE clause

Q: Conditions order in WHERE clause

From: huh <huhhy_at_rocketmail.com>
Date: Wed, 28 Jul 1999 15:25:22 +0200
Message-ID: <7nn0df$2ppl$1@ns.felk.cvut.cz>


Hi,

Does somebody know in what order are WHERE conditions evaluated? Is it determined or is the final decision made by an optimizer?

E.g.:

select ...
   from ...
 where A1.A = 5                            -- c1
             and A1.B = A2.B             -- c2
             and A1.C = A3.C (+)       -- c3
             and A2.D is NULL           -- c4

Is this evaluated as it is written? :
c1 first then c2, c3 and finally c4?

How to ensure join conditions be evaluated first?

TIA --
Thank you for keeping >anti-spam< habit: not including my address in your reply. Received on Wed Jul 28 1999 - 08:25:22 CDT

Original text of this message

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