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-query

RE: sql-query

From: Raymond Lee Meng Hong <RAYMOND_at_infopro.com.my>
Date: Tue, 03 Jul 2001 22:26:13 -0700
Message-ID: <F001.00340DB7.20010703213550@fatcity.com>

how about something like this
select hgr, rh.VGRP, ART_GRP,TEKST
from rh
where NOT IN (SELECT art_grp
from rik2.katsett_hgr )

it will check those record in rh but not exist in katsett_hgr... Full table scan for those exist in katsett_hgr for everyrecord exist in table rh... ??

-----Original Message-----
Sent: Tuesday, July 03, 2001 9:51 PM
To: Multiple recipients of list ORACLE-L

Hallo all you gurus,

Anyone whom can help me withthis?

I would like to see even art_grp that exists in rh but not in rik2.katsett_hgr.

How can I change this select statement?

select hgr, rh.VGRP, ART_GRP,TEKST
from rik2.hierarki_tekst rh,rik2.katsett_hgr where rh.vgrp(+) =rik2.katsett_hgr.vgrp and rik2.katsett_hgr.sett_id=1 and rh.landkode = 47
order by hgr,vgrp,art_grp

Roland Sköldblom

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: 
  INET: Roland.Skoldblom_at_ica.se

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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.com -- Author: Raymond Lee Meng Hong INET: RAYMOND_at_infopro.com.my 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 Wed Jul 04 2001 - 00:26:13 CDT

Original text of this message

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