Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimised select from 2 tables
Message
De
08/06/2001 09:33:17
 
 
À
08/06/2001 05:10:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00516779
Message ID:
00516856
Vues:
8
Kevin --

Sometimes, in a data driven situation like this, one query won't work equally well for all the various combinations of data.

Have you considered generating SQL on the fly, depending on the actual values available to you? That may give you the best performance under any circumstance.

Jay

>HI
>
>I want to run a SELECT Statement from 2 tables like this:
>
>SELECT *;
> FROM Table1 ;
>LEFT OUTER JOIN Table2;
>ON Table1.Key = Table2.Key;
>WHERE Table1.Field = cValue;
> AND Table2.Field = cValue2
>
>The only problem, is that this isn't optimised if I only populate cValue2.
>
>Any ideas on how I can speed this up?
>
>Thanks
>Kev
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform