Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting DISTINCT
Message
De
06/10/2000 03:15:26
 
 
À
05/10/2000 10:21:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00425306
Message ID:
00425800
Vues:
14
Edgar,

have you tried to use a GROUP BY clause in your subselect instead of DISTINCT? Sometimes this seems to be faster - just a feeling, no scientific experiance.
SELECT *                 ;
    FROM view1           ;
    WHERE Acc_field IN   ;
        (SELECT Acc_field                                ;
             FROM view1                                  ;
             WHERE year = '2001' AND Acc_field LIKE '5%' ;
             GROUP BY Acc_field)
Robert
I've acquired quite a taste for a well-made mistake... [Fiona Apple]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform