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 -> Re: HELP w/ Delete Query ot Oracle 7.3

Re: HELP w/ Delete Query ot Oracle 7.3

From: Leo Put <lp2014_at_vum.be>
Date: 1997/07/03
Message-ID: <33BBD055.34E1@vum.be>#1/1

Bruce Hutfless wrote:
>
> Can anyone tell me what I'm doing wrong?
>
> delete from TMP
> where (select FIELD from TMP where FIELD in (select FIELD in TMP)
> intersect (select FIELD in TMP2));
>
> Technical discussion, assume to tables with identical fields, and I wish to
> delete all records in Table1 where a field in Table1 is equal to a field in
> Table2.
>
> My question is this query properly structured to do this, or how should I
> change it?

delete from TMP
where FIELD in (select FIELD in TMP2);

this should do the job

Leo

Leo Put
Senior Projectleader
Vlaamse UitgeversMaatschappij
lp2014_at_vum.be Received on Thu Jul 03 1997 - 00:00:00 CDT

Original text of this message

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