Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to Select out the Duplicate Record
Message
 
 
À
15/01/2004 23:30:14
Yim Ming Sun Derek
Spacious Design Consultant
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00867356
Message ID:
00867363
Vues:
18
>Hi,
>I am new to VFP8, I have a table and have 1000 records, contain only
>one field, the field contain the invoice no.
>
>How can I use SQL statement to find out the duplicate invoice no. from
>the table ?
>Please advice.
>
>Thanks
>Derek Yim
select InvoiceNo, count(*) as Dups from yourtable group by InvoiceNo ;
having Dups > 1 into cursor Dups
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform