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: Query help !!! - Rewrite

Re: Query help !!! - Rewrite

From: Rocky Welch <rockyw_99_at_yahoo.com>
Date: Fri, 22 Jun 2001 10:59:59 -0700
Message-ID: <F001.00334142.20010622110049@fatcity.com>

How about:

select f.customer_id
from <table_name> f, <table_name> a, <table_name>.b

where f.customer_id = a.customer_id and
      f.customer_id = b.customer_id and
      a.customer_id = b.customer_id and
      f.status = 'F' and
      a.status = 'A' and
      b.status = 'B';

Much cleaner than the one below.


Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail http://personal.mail.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Rocky Welch
  INET: rockyw_99_at_yahoo.com

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
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 Fri Jun 22 2001 - 12:59:59 CDT

Original text of this message

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