How To Create a List of Duplicate RecordsLast reviewed: November 12, 1996Article ID: Q118294 |
The information in this article applies to:
SUMMARYThis article shows how to generate a list of duplicate records in a database so that you can visually determine what records need to be deleted.
MORE INFORMATIONThe following code generates a full list of the duplicate records in INVOICES.DBF and places the list in a cursor named XXX:
USE <FoxPro_directory>\tutorial\invoices SELECT * FROM invoices WHERE cno IN ; (SELECT cno FROM invoices GROUP BY cno HAVING COUNT(cno) > 1) ; ORDER BY cno ; INTO CURSOR xxxFor information about obtaining the number of duplicate records, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q115617 TITLE : How to List Duplicate Records in a FieldFor information about deleting duplicate records, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q104332 TITLE : Methods of Deleting Duplicate Records from a Database |
Additional reference words: VFoxWin 3.00 FoxMac FoxDos FoxWin 2.00 2.50
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |