Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sql to find duplicates
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00811118
Message ID:
00811125
Vues:
14
>>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform