Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Select JOIN or WHERE clause
Message
De
21/03/2006 10:02:50
 
 
À
20/03/2006 22:15:16
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 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01106086
Message ID:
01106215
Vues:
21
>Hi all,
>
>Can someone advise me the performance of SQL Select 1) vs 2):
>
>
>1) SELECT abc.*,xyz.dfrom,xyz.dto FROM abc LEFT JOIN xyz ;
>      ON abc.fld1=xyz.fld1 WHERE dfrom>=20060101 AND dto<=20060131
>
>2) SELECT abc.*,xyz.dfrom,xyz.dto FROM abc LEFT JOIN xyz ;
>     ON abc.fld1=xyz.fld1 AND dfrom>=20060101 AND dto<=20060131
>
>Will (1) perform faster than (2)?
>

While table do dFrom and dTo come from? If it's XYZ, then the two queries don't give the same results, so optimization is irrelevant.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform