Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checking for Duplicates
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00854192
Message ID:
00854197
Vues:
16
Hi,
Sorry, I am not very clear for your question, but if you wan to check for duplication, here is the SQL
SELECT F1, F2, F3 ;
FROM myTable ;
GROUP BY f1 ;
HAVING COUNT(*)>1 ;
INTO CURSOR mytemp
If your "unique" expression is more than one field, just ..
SELECT F1, F2, F3, f1+f2+f3 as f4 ;
FROM myTable ;
GROUP BY f4 ;
HAVING COUNT(*)>1 ;
INTO CURSOR mytemp
Hope it is what you want.
I am not the most powerful man in this world.
I am not the worst man in this world either.
I just as same as all of you.
I still need to learn from my mistakes...
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform