Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duplicates
Message
From
27/09/2011 00:30:29
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Duplicates
Miscellaneous
Thread ID:
01524786
Message ID:
01524786
Views:
113
Hilmar sent me this solution for tracking duplicates in a database a little while ago - it works very well.
Further to this solution, how would i display the names plus an added field called field2 and attribute this information to a variable called myinfo.

Thanks for your help.
k
select name, count(*) as count;
 from mydata;
group by name;
having count > 1;
INTO CURSOR TEMPDUPLICATE
if _tally > 0
MessageBox("Alert: There are duplicates.")
browse normal
endif
Next
Reply
Map
View

Click here to load this message in the networking platform