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 Question

RE: SQL Question

From: Bill Tantzen <tantz001_at_tc.umn.edu>
Date: Tue, 21 Aug 2001 08:34:29 -0700
Message-ID: <F001.003725E4.20010821081104@fatcity.com>

->
-> Your method is correct. The only issue is if you are processing
-> huge amount
-> of data, this will take some (may be lot of) time. You can use not like
-> option for "DO NOT contain" query.
-> ...
-> where title not like '%word%'

If you are suggesting a query such as:

select id from biblio
where title not like '%word%'
intersect
select id from subject
where subject not like '%word%'
intersect
select id from keyword
where keyword not like '%word%'

I don't believe this will work. Let's say you have a title that satisfies the query, that is it doesn't contain "word" If no child records in the subject or keyword tables exist, the intersect will elimimate this valid id from the results.

Or am I not understanding something?

And yes, I can see what you mean already about taking lots of time -- even for a rather small amount of data!!

Bill T.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Bill Tantzen
  INET: tantz001_at_tc.umn.edu

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 Tue Aug 21 2001 - 10:34:29 CDT

Original text of this message

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