Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicate values
Message
From
02/01/2001 17:22:00
Gavin Reid
L & M Marketing Pty Ltd
Frenchs Forest, Australia
 
 
To
02/01/2001 17:10:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00458671
Message ID:
00458683
Views:
10
Hi Steven,

You could try:
SELECT myfield, COUNT(*) ;
   FROM mytable ;
   GROUP BY myfield ;
   HAVING COUNT(*) > 1 ;
   INTO TABLE mydupes
This will give you a Table of Duplicate values is myfield and the number of occurences.

Hope this helps,
Gavin...

>How can I scan a table and find duplicate values in a particular field? I want to create a primary index on two fields and it tells me it can't be done because of dups.
Previous
Reply
Map
View

Click here to load this message in the networking platform