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:
00811125
Views:
13
>>Hi,
>>Can someone help me with the SQL to find all duplicates in a field?
>>Thanks,
>>Allen
>
select KeyFld, count(*) as CntDups from TestDups group by 1 ;
>     having CntDups > 1 ;
>     into cursor curDupes
>
Sorry but I did get it...
Keyfld for me is lineitems_id
TestDups table is lineitems
What's CntDups... a variable?

Allen
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform