×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Then how about:

Select KEYFIELD, COUNT(*), MAX(RRN(TABLE))
>From COLLECTION.TABLE
Group by KEYFIELD
Having COUNT(*)>1

For each record in the result set, chain by RRN and delete. Keep running
until result set is empty.

> -----Original Message-----
> From: Mark Allen
> 
> Actually what I need it to do is delete the dups:
> 
> Record 1: ABCDEFGHIJKL
> Record 2: ABCDEFGHIJKL
> Record 3: 123456789012
> 
> I want to delete record 2
> 
> [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Metz Zak
> 
> Well here's your SQL method and I thinks it's pretty clean:
> 
> Select KEYFIELD, COUNT(*)
> >From COLLECTION.TABLE
> Group by KEYFIELD
> Having COUNT(*)>1
NOTICE: This E-mail may contain confidential information. If you are not
the addressee or the intended recipient please do not read this E-mail
and please immediately delete this e-mail message and any attachments
from your workstation or network mail system. If you are the addressee
or the intended recipient and you save or print a copy of this E-mail,
please place it in an appropriate file, depending on whether
confidential information is contained in the message.



This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.