Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help Optimizing a query
Message
 
À
09/08/2001 20:18:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00542086
Message ID:
00542088
Vues:
26
>Select ;
>        Ramp, ;
>        Vendor, ;
>        VendCity, ;
>        VendSt, ;
>        HourCount ;
>    Where ;
>        Upper( Ramp ) = 'CHICAGO' And ;
>        Between( HourCount, 37, 48 ) And ;
>        Upper( Vendor ) = 'NIKE' And ;
>        Not Empty( Ramp ) And ;
>        Empty( HourCount ) ;
>    Into Cursor qVendorTimes NoFilter
>
>
>I'm afraid to break the SQL down into multiple SQL's because writing out 27,000 records is going to be slow.

There are 2 pairs of conditions there that seem wrong:

upper( ramp) = 'CHICAGO' and not empty( ramp)
I would remove the "not empty( ramp)" part

and

between ( hourcount, 37, 48) and empty( hourcount)
Make up your mind... you want specific hourcounts or empty hourcounts?

Alex
Low-carb diet not working? Try the Low-food diet instead!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform