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: ** SQL WHERE clause order

Re: ** SQL WHERE clause order

From: Mladen Gogala <mladen_at_wangtrading.com>
Date: Thu, 06 Nov 2003 10:29:41 -0800
Message-ID: <F001.005D5D9D.20031106102941@fatcity.com>


BAG???? OK, is there a bag of all bags?

On 11/06/2003 01:19:25 PM, Wolfgang Breitling wrote:
> Then put it in procedural logic instead of into the SQL. SQL is a set (or
> more precisely bag) oriented language. You describe the set by its
> attributes, NOT by the steps to create it.
>
> At 10:24 AM 11/6/2003, you wrote:
> >Wolfgang,
> > I think you understand by now : I want a certain predicate evaluated
> > first because it has a program variable :select_sen_emp_chk_first and I
> > want it checked before going to the check dept or salary since that will
> > need a table access. Thank You.
> >
> >Wolfgang Breitling <breitliw_at_centrexcc.com> wrote:
> >Why do you want a certain predicate evaluated first?
> >
> >At 02:34 PM 11/4/2003, you wrote:
> > >Hi,
> > > In a SQL statement I want a certain where clause to be done first. Is
> > > it enough to list it first as follows or do I (and can I) do something
> > > else to make it get checked first before other WHERE/AND clause are
> > > looked at. Thanks :
> > >
> > >SELECT emp_id FROM emp
> > >WHERE select_sen_emp_chk_first = 'Y'
> > >AND dept = :dept
> > >AND salary > :min_sal
> >
> >Wolfgang Breitling
> >Oracle7, 8, 8i, 9i OCP DBA
> >Centrex Consulting Corporation
> >http://www.centrexcc.com
>
> Wolfgang Breitling
> Oracle7, 8, 8i, 9i OCP DBA
> Centrex Consulting Corporation
> http://www.centrexcc.com
>
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.net
> --
> Author: Wolfgang Breitling
> INET: breitliw_at_centrexcc.com
>
> Fat City Network Services -- 858-538-5051 http://www.fatcity.com
> San Diego, California -- Mailing list and web hosting services
> ---------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
>

Mladen Gogala
Oracle DBA

Note:
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please immediately delete it and all copies of it from your system, destroy any hard copies of it and notify the sender. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. Wang Trading LLC and any of its subsidiaries each reserve the right to monitor all e-mail communications through its networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of any such entity.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Mladen Gogala
  INET: mladen_at_wangtrading.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Thu Nov 06 2003 - 12:29:41 CST

Original text of this message

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