Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Excluding almost duplicates from a UNION
Message
 
 
À
29/06/2001 11:22:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00524751
Message ID:
00525212
Vues:
21
Hmmmm... Well, maybe for debugging it helps to do it twice, but speed is important and it seems that having it in one select would be faster.

Thanks,

Michelle


>Sometimes it is easier - among others, for debugging purposes - to separate a single SQL - SELECT command into several.
>
>
>SELECT ... (union goes here) ... into cursor Tmp nofilter
>SELECT * from Tmp into cursor Tmp group by MyField
>
>
>Yes, you can (usually) send the result from cursor Tmp back into cursor Tmp! However, again for debugging purposes, you may want to keep a separate cursor.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform