Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why is this SQL faster?
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00930072
Message ID:
00930084
Views:
17
This message has been marked as the solution to the initial question of the thread.
Mel,

That's exactly the point. You use 'IF' outside a query and macro substitution is evaluated only once, not for every row.
>
>>The best way in this case would be to use macro substitution. This way JOIN will be optimizable with proper indexes. <
>
>The if/endif statement can't be within a Select statement can it (as each row has to be evaluated)?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform