Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find duplicate field entries quickly?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01221602
Message ID:
01221607
Views:
9
>I have a large table with one field that I need to check for duplicates.
>
>I know there is a way to do a SELECT statement to do this (if I recall correclty, you have to do some type of select/having statement or something like that? Anyone know how to do this?
>
>Thanks!
select field1, count(*) as CntDups from myTable group by 1 having cntDups > 1
See also Eliminating duplicates in a table FAQ #8129
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform