Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sql to find duplicates
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00811118
Message ID:
00811332
Views:
12
Use SELECT COUNT(*), field FROM whateverdb GROUP BY field

The cnt_ column in the result will tell you how many times a data item is repeated in this field; a 2 obviously means a duplicated item, more than 2 means multiples of this item, 1 means singular instance of item. HTH. /psb
Previous
Reply
Map
View

Click here to load this message in the networking platform