Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I optimize this query?
Message
 
À
29/01/2005 14:53:49
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:
00982003
Vues:
40
I can't figured out what happens. the first time it works. the second time I run it second query gives me ALL records from Partida!
SELECT Results.Partida ;
       FROM Results ;
       GROUP BY Results.Partida ;
INTO CURSOR cRS NOFILTER

** 8 records as I expect

SELECT Partida.Name, cRs.Partida;
       FROM cRs;
       LEFT JOIN Partida ON cRs.Partida == Partida.Kod;
       ORDER BY cRs.Partida;
       INTO CURSOR cEl

** 110 records?

BROW
If I remove JOIN clause all is OK, But how is that it is LEFT join not RIGHT one.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform