Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> SQL query "delete all but one"?

SQL query "delete all but one"?

From: Andreas Homrighausen <andreas.homrighausen_at_fernuni-hagen.de>
Date: Wed, 17 Oct 2001 21:14:39 +0200
Message-ID: <3BCDD89F.4E574AAA@fernuni-hagen.de>


In a table "tablename" with a column "number" I want to delete all but one rows with number=1234.

Does Oracle offer something like

delete all but one from tablename where numer=1234; ?

Thanks!

Andreas Received on Wed Oct 17 2001 - 14:14:39 CDT

Original text of this message

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