Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help Optimizing a query
Message
 
To
09/08/2001 20:18:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00542086
Message ID:
00542088
Views:
29
>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!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform