Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query beating me down
Message
De
07/03/2002 06:35:32
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
06/03/2002 15:33:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00629228
Message ID:
00629438
Vues:
8
>...
>This returns less than 5444 records, because some items have not been shipped. I need the final result to still have 5444 records. Also, this second query runs pretty slow (I think it joins everything before applying the where condition).
>
>I tried creating a view that joins pastInvoices and pastInvoiceLines, so I could join with that view in my second query, but opening the view takes a lifetime.

Try dividing the query into pieces: select perhaps two tables first, join the result with a third table, etc. This can sometimes speed things up dramatically.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform