Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can this SELECT be improved to go faster?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00395152
Message ID:
00396350
Views:
12
>>Thanks, Garrett. Moving the odometer comparisons from the join condition to the where actually slowed it down, but the BETWEEN ... AND is good to know. It's a little faster than the >=/<=, and makes it easier to read the code.
>
>Sorry about that. I just noticed that I originally posted it with the odometer comparisons in WHERE. Anyway, it runs faster with that part in the JOIN condition... Thanks again for the BETWEEN! :)

You're welcome. I have an article in the pipeline explaining the difference between filtering in the JOIN and in the WHERE. It will be Q268906 if it makes it through the review process.

(Summarizing, if you have an outer join and you're filtering on the child table, you get different results from putting the filter in the JOIN or the WHERE.)
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Reply
Map
View

Click here to load this message in the networking platform