Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which SQL will execute faster?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Titre:
Which SQL will execute faster?
Divers
Thread ID:
01181138
Message ID:
01181138
Vues:
49
With the VFP SQL engine, which query below will execute faster... or will they be converted to the same query? Is there a preferred syntax? All I'm doing is taking a simple where clause and moving it to the ON clause of an inner join. Thanks very much.
select a.field1, a.field2, b.fieldfromb ;
from table1 a ;
inner join table2 b on b.somefield=a.somefield;
where a.field1="X"
or this:
select a.field1, a.field2, b.fieldfromb ;
from table1 a ;
inner join table2 b on a.field1="X" AND b.somefield=a.somefield
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform