Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I optimize this query?
Message
De
29/01/2005 16:58:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
00982000
Message ID:
00982016
Vues:
27
>Is there a way to optimize this query?
>It takes about 6 seconds to select the records from a Table with 22000 records. I can't imagine what will happens if this table becomes bigger as I expect.
>
>
>SELECT DISTINCT Partida.Name AS Name, Results.Partida;
>       FROM Results;
>       LEFT JOIN Partida ON Results.Partida == Partida.Kod;
>       ORDER BY Results.Partida;
>INTO CURSOR cEl
>
>
SELECT Partida.Name AS Name, Results.Partida;
       FROM Results;
       LEFT JOIN Partida ON Results.Partida == Partida.Kod;
       GROUP BY 2,1;
INTO CURSOR cEl
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform