Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Question about WHERE vs JOIN, and the 'new' ANSI standar
Message
De
12/04/2000 09:59:30
 
 
À
11/04/2000 21:59:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00358465
Message ID:
00358647
Vues:
16
>Hi, folks...
>
>Couple of questions...
>
>First, are there any known issues/advantages of doing tables joins in a JOIN vs WHERE? I had always believed the performance would be similar, but I recently saw the same query coded with a JOIN and then a WHERE...basic query against a large invoice tables and a join against a couple of masters. The JOIN syntax took 15 minutes, and the WHERE took about 11.
>

The best way to check out the performance (assuming your talking about local tables) is with SYS(3054). That way, you can see exactly what VFP is doing, which indexes it's using to do what.

One difference is that in the JOIN clause, VFP will look at the tables on both sides of the expression and, if both have tags, choose which one to use. In WHERE, only the left-hand side is considered.

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

Click here to load this message in the networking platform