Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I optimize this query?
Message
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:
00982003
Views:
39
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform