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: SQL Too difficult for me do you know how?

Re: SQL Too difficult for me do you know how?

From: MaxisBW <maxisbw_at_aol.com>
Date: 5 Mar 1999 06:24:14 GMT
Message-ID: <19990305012414.16075.00003572@ng10.aol.com>


I think the quickest way which does not involve correlated subqueries is

delete from [table] where rowid in
(select rowid from [table] minus
select max(rowid) from [table] group by clientID, AddressID).

In my experience, this outperforms
correlated subqueries
 by 50-1000% Received on Fri Mar 05 1999 - 00:24:14 CST

Original text of this message

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