Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking duplicate values
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01335071
Message ID:
01335088
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
Than they all have duplicates in ap2 on Id2 field.

>Its quite faster
>
>But any of the 3 shows all records instead of only duplicated
>
>I wrote as below
>
>
>SELECT * FROM ap WHERE id2 IN (SELECT id2 FROM ap2) INTO CURSOR crsDupRecs
>* or - most likely the fastest one
>*SELECT ap.* FROM ap JOIN ap2 ON ap2.id2 = ap.id2 INTO CURSOR crsDupRecs
>* or
>*SELECT * FROM ap WHERE EXISTS (SELECT 1 FROM ap2 WHERE ap2.id2 = ap.id2 ) INTO CURSOR crsDupRecs
>
>SELECT crsDupRecs
> BROWSE
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform