Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to duplicate this with SPT?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00492451
Message ID:
00492455
Vues:
11
>SELECT * FROM mastcoil INTO CURSOR tmprfil4 WHERE &pcstring UNION SELECT * FROM masthist WHERE &pcstring

>SELECT DISTINCT * FROM tmprfil4 INTO CURSOR tmprfile GROUP BY fcprocno

As far as I know, doing a UNION (without the ALL keyword) will automatically get rid of duplicates, so you don't even need to do the second SELECT DISTINCT. So the original SELECT should do the whole thing for you.

--Brad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform