Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I optimize this query?
Message
From
29/01/2005 16:58:16
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00982000
Message ID:
00982016
Views:
28
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform