Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rushmore question
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Rushmore question
Divers
Thread ID:
00146041
Message ID:
00146041
Vues:
69
Why does this only partially optimize:

select * ;
   from history ;
   into cursor xtemp ;
   where ( ( ltStart <= tCreated ) and ( tCreated < ltStop ) ) ;
   order by iMachineID, tCreated

to get it to fully optimize it has to be written:

select * ;
   from history ;
   into cursor xtemp ;
   where ( ( tCreated >= ltStart ) and ( tCreated < ltStop ) ) ;
   order by iMachineID, tCreated
Why does the field have to appear on the left side or the operator??? Is this documented somewhere?

I'd prefer to to write things more like the algebraic ltStart <= X < ltStop. But evidently rushmore is persnickety about coding that way. There is are indexes on tCreated and iMachineID.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform